Optimising Docker Images




Hi Folks, Reduced my Go Docker image from 249 MB to 1.8 MB today just by fixing the Dockerfile.

Switched from a single-stage golang:1.21-alpine image to a multi-stage build: compile in a builder image, then ship only the compiled binary in a minimal scratch image.
Smaller images mean faster pulls, quicker deployments, and a reduced attack surface. Just telling the importance of optimisation , depending on your use case try optimising the size , save costs and memory.

Comments

Popular posts from this blog

CircleCI , free CICD with agents(executors)??

Students and Freshers in IT, It’s time to learn Linux

Stack overflow vanishing??