Answer the question
In order to leave comments, you need to log in
How to execute RUN curl in Dockerfile?
I have a need to upload a file when building a container. I do it through RUN curl -O my-url I
run the build and see that the download is in progress, but when I go into the container I can’t actually find this file. Where did
I stumble?
I see the docker for the first time in fact
Answer the question
In order to leave comments, you need to log in
Do not use curl for this task.
Use ADD with URL as src.
https://docs.docker.com/engine/reference/builder/#add
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question