Building Per Environment
A pipeline runs docker build separately for staging and for production from the same commit. Why is that a problem?
docker build
Part of CI/CD Pipelines in Practice. Next step: Same Image, Different Settings
Choose one answer
Docker can't tag the same image for two different environments.
Production may run an image that differs from the one tested in staging.
Building twice uses two registry storage slots, which doubles the cost.
Staging images are built in debug mode, which is slower in production.