도커 컨테이너에서 호스트로 파일 복사
docker cp <containerId>:/file/path/within/container /host/path/target
호스트에서 도커 컨테이너로 파일 복사
docker cp foo.txt mycontainer:/foo.txt
dockerfile 예제
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
도커 ARG
$ docker build --build-arg some_variable_name=a_value
dockerfile 특정 파일 복사
COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
All the files and folders, the last is destination
dockerfile 실행 앱 cmd
RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"