I have a Dockerfile, I want to copy file if the comparaison is correct for the Dockerfile, but after docker build and docker run, the file is not present on docker, it lack of something ?
ARG A_ARG
RUN if [ "$A_ARG" = "toto" ]; then cp files/opt/toto.sh /opt; chmod +x /opt/toto.sh; fi
docker build --build-arg A_ARG=toto .
docker run id_contenair
Aucun commentaire:
Enregistrer un commentaire