Small question regarding how to install a newer version of curl on an image pre-sipped with an old version of curl
I cannot touch or modify the base image.
Currently, the Dockerfile starts with:
FROM customdocker.com/my-organization/must/use/jdk/11:latest as BUILDER
And going inside the container, simple curl version will show a very old curl version.
I just want to use a newer one. I don't want to change anything else.
Hence, very naive, I went to change the Dockerfile by adding:
RUN yum install -y curl
While it is building, when I run the image, and execute a curl, I am left with the same old version of curl.
How to install, override the old version with a newer of my choice please?
Thank you
question from:
https://stackoverflow.com/questions/65829465/how-to-install-a-newer-version-of-curl-on-a-docker-base-image-shipped-with-an-ol 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…