A good Dockerfile makes builds fast, images small and deployments safe; a bad one multiplies image size by 10 and time-to-deploy by 100.
A 2 GB image takes 30s to pull on a fast network; a 200 MB image takes 3s. A Dockerfile that runs apt-get update && apt-get install -y nodejs npm curl git in a single layer keeps 500 MB of tools the app never uses. A Dockerfile without USER runs as root on the host kernel. The recipe is the difference between a lightweight deploy and a security incident.