I'm trying to run python on a docker but I'm not getting it.
My Dockerfile looks like this:
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.
How to fix this?
Missing copying the file byPassCaptcha.py
WORKDIR /usr/src/app
ADD . /usr/src/app
RUN pip install -r requirements.txt
CMD [ "python", "byPassCaptcha.py" ]
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.