Answers for "dockerfile copy"

2

copy file from host to docker container

docker cp foo.txt mycontainer:/foo.txt
Posted by: Guest on November-29-2020
1

dockerfile copy specific files

COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
		All the files and folders, the last is destination
Posted by: Guest on November-05-2020
-2

dockerfile run app cmd

RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"
Posted by: Guest on August-17-2020

Browse Popular Code Answers by Language