How to copy folders to docker image from Dockerfile?

The Solution to How to copy folders to docker image from Dockerfile? is


Like @Vonc said, there is no possibility to add a command like as of now. The only workaround is to mention the folder, to create it and add contents to it.

# add contents to folder
ADD src $HOME/src

Would create a folder called src in your directory and add contents of your folder src into this.

~ Answered on 2017-07-22 03:31:20


Most Viewed Questions: