Overview
Discover essential techniques for creating production-ready containers in this 20-minute video featuring a hands-on Node.js demonstration. Explore three key optimization areas: image size, build speed, and security. Learn common container hardening methods, from manual adjustments to multistage builds and popular open-source tools, while understanding their trade-offs. Follow along with practical examples, including a "Hello World" Node.js application and improved Dockerfile creation. Gain insights into container slimming, user settings, version pinning, layer caching, NPM cache management, alternative base images, and multi-stage builds. By the end of this Docker-produced content, acquire the knowledge needed to confidently ship efficient and secure containerized applications.
Syllabus
Intro
Three key optimization takeaways
What is needed for production
Container Slimming
"Hello World" NodeJs Example
Example "Hello World" Dockerfile
Creating a Better DockerFile
Setting a User
Pinning a Version
Layer Caching
NPM Cache Management
Alternative Base Image
Multi-Stage Builds
Taught by
Docker