Projects / Intermediate

🐳 Shrink a 1.24GB image to 168MB, and stop a one-line fix from rerunning pip install

What you end up with

A 168MB image that doesn't run as root, with no compiler and no .git inside, and a Dockerfile that doesn't reinstall dependencies when you change code. And when you see a fat image, you can say "which layer, and because of what", with numbers.

🔒

Create a free account to read this project

Sign up for a free membership to read every free project. Already have an account? Please sign in.

Other projects

← Back to all projects