Docker from Scratch: Advanced Dockerfile Patterns
Conditional builds with ARG, health checks, cross-platform images, linting, and other Dockerfile patterns for production use.
Conditional builds with ARG, health checks, cross-platform images, linting, and other Dockerfile patterns for production use.
Use layer caching, BuildKit cache mounts, and parallel stages to make your Docker builds faster.
Run containers as non-root users, choose minimal base images, and keep secrets out of your Docker layers.
Use multi-stage Dockerfiles to separate build tooling from your runtime image, cutting image size by 90% or more.
Learn Dockerfile basics — FROM, COPY, RUN, CMD — and build your first container image.
Run a Go API as a DDEV sidecar so Laravel in the web container can call it by service name, with one shared secret for signed requests.
Learn how to set up and use Dev Containers in Visual Studio Code for consistent, isolated development environments.