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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -2
Dockerfile CHANGED
@@ -52,8 +52,20 @@ RUN git clone https://github.com/lllyasviel/Fooocus . && \
52
  pip install --no-cache-dir -r requirements_versions.txt
53
 
54
 
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
 
58
 
59
  # remove the next line if you're running on your own GPU, it set max images to 3 and disables the API
 
52
  pip install --no-cache-dir -r requirements_versions.txt
53
 
54
 
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:
65
+ # RUN sed -i "s|def load_auth_data.*|def.load_auth_data() pass|" /home/user/app/modules/auth.py
66
+
67
+ # Continue with the rest of your Dockerfile...
68
+
69
 
70
 
71
  # remove the next line if you're running on your own GPU, it set max images to 3 and disables the API