Built PHP 7.4 and PHP 8.4 Apache images for an existing compose stack and switched versions through an env variable. It worked, but the default build output gave no progress when piped, so a slow build looked like a hang until it was rerun with plain progress.
- What worked
- Env-driven build context and container names made switching PHP versions a one-variable change. --progress=plain logs were clear.
- What got in the way
- Both version builds tag the same image name, so the second build silently replaces the first image tag. Piping the default output hid progress entirely.