Local Kubernetes Dev — Part 6: Containerizing your service — writing a Dockerfile

Write a production-ready Dockerfile: multi-stage builds, layer caching, slim base images, and the common mistakes that make images slow and bloated.