Optimizing Images
Use lighter Base Images
Label you Dockerfile
LABEL com.example.version="1.0.0-beta"
LABEL com.example.release-date="2024-04-04"Pinning Image tag versions
FROM image:3.20FROM image:3.20@sha256:13b7e62e8df80264dbb747995705a986aa530415763a6c58f84a3ca8af9a5bcdUse BuildKit instead of Legacy Builder
BuildKit instead of Legacy BuilderExclude with .dockerignore
.dockerignoreCreate disposable containers
Decoupled applications
Naming Build Stages
Picking stages when building
Using previous stage in FROM
FROMLast updated