Docker python images
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
2-onbuild
3-onbuild
LICENSE
README.md

README.md

Python onbuild Docker images

Tired of a small app becoming a 750 MB image? Base your app on our reshuffled onbuild commands and shrink it considerably.

How to use

Start your Dockerfile with:

FROM tomologic/python:3-onbuild

What does it do?

The library's base python image contains gcc and other necessities to compile code. The library also has a slim image which doesn't contain that, but then some packages fail to install because they need to compile.

We solve this by taking a slim image, copying your requirements.txt, then in one humongous step we install essential build packages, install requirements through pip and clean up after ourselves to minimize layer size. Drawback is that building the image takes longer, so this might not be great for your local development workflow.