This post describes how the author reduced the size of a Docker image by 40% by using step-by-step optimization techniques, such as multi-stage builds. The author also discusses the use of tools like `docker-slim` and `docker-squash`. The final image size was 17.6 MB.

18m read time From bhupesh.me
Post cover image
Table of contents
The very first Dockerfile ~attempt~Path to optimization - reducing image size by 40%2nd attempt - alpine on alpine3rd attempt - Using scratch at 2nd stageEverything needed to run ugitCould we reduce the size further?You didn’t try docker-slim ?You didn’t try docker-squash ?LearningsAcknowledgementsResources

Sort: