Spaces:
Build error
Build error
Update Dockerfile
Browse files- Dockerfile +5 -15
Dockerfile
CHANGED
@@ -52,20 +52,8 @@ RUN git clone https://github.com/lllyasviel/Fooocus . && \
|
|
52 |
pip install --no-cache-dir -r requirements_versions.txt
|
53 |
|
54 |
|
55 |
-
|
56 |
-
|
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 |
-
USER user
|
64 |
-
# Now you can run sed command or any other modifications on auth.py
|
65 |
-
# For example:
|
66 |
-
RUN sed -i "s|def load_auth_data.*|def.load_auth_data() pass|" /home/user/app/modules/auth.py
|
67 |
-
|
68 |
-
# Continue with the rest of your Dockerfile...
|
69 |
|
70 |
|
71 |
|
@@ -89,4 +77,6 @@ ENV HOME=/home/user \
|
|
89 |
GRADIO_THEME=huggingface \
|
90 |
SYSTEM=spaces
|
91 |
|
92 |
-
CMD
|
|
|
|
|
|
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 |
|
|
|
77 |
GRADIO_THEME=huggingface \
|
78 |
SYSTEM=spaces
|
79 |
|
80 |
+
CMD sed -i "s|def load_auth_data.*|def load_auth_data()\n pass|" /home/user/app/modules/auth.py && \
|
81 |
+
sed -i "s|def check_auth*|def check_auth()\n pass|" /home/user/app/modules/auth.py && \
|
82 |
+
["python", "launch.py"]
|