1
Mistake 1 / 5
Pinning to :latest
It works until it doesn't. A dependency release over the weekend silently changed the image. Monday deployment breaks with a different Python version than last week.
FROM python:3.12.9-slim
# not: FROM python:latest
✓ Always pin to an exact version