How to add arbitrary system packages to a project¶
All Divio Cloud projects are based on a customised Docker image, which uses aversion of Ubuntu Linux.
If your project requires a particular system package, you can include them inthe Docker image, by listing the commands required to install them - typically,using - in the Dockerfile
.
and before any Python-related commands that might depend on the package.
You should include an in the installation commands, and runapt-get
with the -y
(“Say yes”) option, for example:
The build output will show the new instructions being executed as partof your build.
To make a quick check that the command installs what you require, withouthaving to rebuild the entire project, jump into a new container runningbash
with: