I'm shipping a Python app for deployment on Debian servers. Providing a requirements.txt
file with a list of all needed Python packages is very convenient when installing the app, especially when accompanied with a Makefile
to automatically install from it using pip
.
But as you know some Python packages depend on Linux system packages (Debian in this case), and it would be great if I could provide a similar file with my project to install them all in one step, and define the Makefile
rule to automate it.
Do dpkg
or apt
provide such functionality?
I ended up just listing the required packages as arguments to apt install
command, since there were not many of them.
I put the command is a Dockerfile
and creating a Docker image is now my preferred way to automate how an app gets created and deployed.