Overview
Learn valuable insights and best practices for optimizing Dockerfiles and Docker builds in this 29-minute conference talk from DockerCon 2021. Explore key topics including choosing the right base image, chaining RUN commands for efficiency, implementing effective cleanup strategies, leveraging the layer cache for app package installations, utilizing .dockerignore files, harnessing the power of multi-stage builds, and the importance of comprehensive labeling. Discover the advantages of Buildkit and gain access to additional resources to enhance your Docker development skills. Speaker Aaron Kalin shares lessons learned and practical tips to improve your Docker workflow and create more efficient containerized applications.
Syllabus
Intro
Hi! I'm Aaron
Overview
Dockerfiles Crash Course Part 3
Be Careful of the Base (Unless it's Ace of Base)
Chain your RUN commands
Cleanup is good - Again, Layer efficiency
Run your app package installs separately - Remember the layer cache
Don't forget your dockerignore
Use multi-stage builds - Your new superpower with Docker
Label EVERYTHING - Bring out your inner office manager
Buildkit is AWESOME - Buildkit was first introduced to docker in 18.09
But why?
Don't forget...
Resources
Taught by
Docker