1.6.4.3 Extending the Dockerfile with Additional Tools/Linux Packages

Additional Linux packages can be installed by modifying your dockerfile. To get started you can first start the image in interactive mode and then manually install the packages from command line:

apt-get update
apt-get install [packageName]

When you have verified that the packages are available and works, you can add them your Dockerfile:

RUN apt-get update -yq \
 && apt-get install -yq --no-install-recommends \
 [packageName] \
 && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
Note: The last clean up line is used to keep the Docker image as small as possible.