V
V
Vadim_laka2020-03-02 07:40:50
Docker
Vadim_laka, 2020-03-02 07:40:50

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

1 answer(s)
D
Dmitry Shitskov, 2020-03-02
@Vadim_laka

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 question

Ask a Question

731 491 924 answers to any question