Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
#
|
61 |
-
|
|
|
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:
|