ADD failed : No such file/Directory while building docker image

前端 未结 3 1893
遥遥无期
遥遥无期 2020-12-16 12:16

I have below Dockerfile:

FROM python:3

RUN mkdir -p /test/code/
RUN mkdir -p /test/logs/
RUN mkdir -p /test/configs/

ADD test.py /test/code/
ADD test_outpu         


        
3条回答
  •  旧时难觅i
    2020-12-16 12:27

    Also make sure to not add in the .dockerignore file a file or folder that is needed during the image building process.

提交回复
热议问题