How to install packages via apt get?

Hello there,

Basically I’m looking for a way to install some packages via apt get in order to make my python application work, is there any way I can do that?

Here is the command I want to run

apt-get install python-dev python-pip libtiff5-dev libjpeg8-dev \
    zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.6-dev \
    tk8.6-dev python-tk pdftk libmagickwand-dev

The library I’m using that need to install those packages:

In a plain lambda environment you would need to use ‘native binary packages’ lambda zips to do this: Use Amazon Linux AMI Native Binary Packages in a Lambda Deployment Package (and its yum not apt-get)…

However I am not sure if this is supported by serverless.

1 Like