Munzali commited on
Commit
a2809f1
·
verified ·
1 Parent(s): d313bef

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -55,10 +55,11 @@ RUN git clone https://github.com/lllyasviel/Fooocus . && \
55
  #RUN sed -i "s|def load_auth_data.*|def load_auth_data()\n pass|" /home/user/app/modules/auth.py
56
  #RUN sed -i "s|def check_auth*|def check_auth()\n pass|" /home/user/app/modules/auth.py
57
  # Copy the modified auth.py file into the Docker image
58
- COPY ./auth.py /auth.py
59
 
60
- # Make sure the file has correct permissions
61
- RUN chmod 644 /auth.py
 
62
 
63
  # Now you can run sed command or any other modifications on auth.py
64
  # For example:
 
55
  #RUN sed -i "s|def load_auth_data.*|def load_auth_data()\n pass|" /home/user/app/modules/auth.py
56
  #RUN sed -i "s|def check_auth*|def check_auth()\n pass|" /home/user/app/modules/auth.py
57
  # Copy the modified auth.py file into the Docker image
58
+ COPY ./auth.py /home/user/app/modules/auth.py
59
 
60
+ # Change permissions using root user
61
+ #USER root
62
+ RUN chmod 644 /home/user/app/modules/auth.py
63
 
64
  # Now you can run sed command or any other modifications on auth.py
65
  # For example: