Closed cbtrimble closed 9 months ago
Is this a reasonable modification to my Dockerfile?
...
RUN sudo apt-get update && sudo apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade -y
...
Yes sur, you can do that. But the common recommandation is to add ENV DEBIAN_FRONTEND=noninteractive
at begining (i did not test but should use the default action).
PS: Forcing a dist-upgrade in a Docker image is a bit risky... but you do not have many other alternatives while waiting for V5. PS2: For production, you should preferably go with the slim version (lighter, it does not include the php modules that you do not use).
Okay, thanks for the advice, I will try that.
Expected Behavior
apt-get upgrade
Current Behavior
I like to run
apt-get update && apt-get upgrade -y
as part of my Dockerfile. With latest base images, this causes the image build to pause and wait with the following query:Steps to Reproduce (for bugs)
Dockerfile:
Context
Just trying to build images for production releases.
Your Environment
Same behaviour whether building on my Windows-based developer laptop with Docker Desktop, or on a Jenkins agent running Amazon Linux 2.