I have a python script that downloads another script and executes it. Unfortunately the second script can't be downloaded due to the lack of permission.
Error:
retrbinary("RETR " + filename ,open(filename2017-06-14 14:16:28 [APP/PROC/WEB/0] ERR PermissionError: [Errno 13] Permission denied: 'aa.py'
I tried to give CHMOD permission by using this dockerfile:
FROM python:3 ADD ftapp.py / WORKDIR /usr/src/app RUN CHMOD 777 usr/var/app/ CMD [ "python", "./ftapp.py" ]
I think you have a typo
FROM python:3
WORKDIR /usr/src/app
ADD ftapp.py .
RUN CHMOD 777 /usr/src/app/
CMD [ "python", "ftapp.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.