Docker — Best Practices and Pro Tips for Writing Dockerfiles
· 9 min read
Bronnen
Bron
: artikel integraal overgenomen van DevOps Mojo
Origineel auteur
: Ashish Patel
Production Pro Tips: Overview of best practices for writing Dockerfile.
Below is the list of recommended best practices and methods for building efficient images.
Build the smallest image possible.
Building a smaller image offers advantages such as faster upload and download times. This is important for the cold start time of a pod in Kubernetes: the smaller the image, the faster the node can download it.