Do's # Practice Reason 1 Use multi-stage builds Smaller images; no build tools in production 2 Use .dockerignore Faster builds; smaller context 3 Run as non-root Security — containers shouldn't run as root 4 Use specific image tags 9.0-alpine not latest — reproducible 5 Use health checks Compose and K8s need to know service health 6 Layer ordering Least-changing layers first for cache efficiency 7 One process per container Easier to scale and debug Don'ts # Anti-pattern Correct Approach 1 Secrets in Dockerfile Use environment variables or secrets managers 2 Use latest tag Pin specific versions for reproducibility 3 Run as root Add USER appuser in Dockerfile 4 Install unnecessary packages Keep images minimal — Alpine + only what's needed 5 Store data in containers Use volumes for…