[英]Dokerfile python can't open file
I'm trying to run python on a docker but I'm not getting it.我正在尝试在 docker 上运行 python 但我没有得到它。
My Dockerfile looks like this:我的Dockerfile看起来像这样:
FROM python:3
WORKDIR /usr/src/app
COPY requirements.txt ./
RUN pip install -r requirements.txt
ADD . /
CMD [ "python", "byPassCaptcha.py" ]
This is the error message:这是错误消息:
python: can't open file '/usr/src/app/byPassCaptcha.py': [Errno 2] No such file or directory The terminal process "/bin/bash '-c', 'docker run --rm -it recaptchabypass:latest'" terminated with exit code: 2. python: can't open file '/usr/src/app/byPassCaptcha.py': [Errno 2] No such file or directory The terminal process "/bin/bash '-c', 'docker run --rm -it recaptchabypass:latest'" 以退出代码终止:2。
How to fix this?如何解决这个问题?
Missing copying the file byPassCaptcha.py
缺少通过byPassCaptcha.py
复制文件
WORKDIR /usr/src/app
ADD . /usr/src/app
RUN pip install -r requirements.txt
CMD [ "python", "byPassCaptcha.py" ]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.