copier le fichier du conteneur docker vers l'hôte
docker cp <containerId>:/file/path/within/container /host/path/target
copier le fichier de l'hôte vers le conteneur docker
docker cp foo.txt mycontainer:/foo.txt
exemple de fichier dockerfile
FROM ubuntu:18.04
COPY . /app
RUN make /app
CMD python /app/app.py
docker ARG
$ docker build --build-arg some_variable_name=a_value
dockerfile copie des fichiers spécifiques
COPY ["__BUILD_NUMBER", "README.md", "gulpfile", "another_file", "./"]
All the files and folders, the last is destination
fichier dockerfile exécuter l'application cmd
RUN apt-get install python3
CMD echo "Hello world"
ENTRYPOINT echo "Hello world"