Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -9,11 +9,10 @@ COPY . /app
|
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple
|
| 11 |
|
| 12 |
-
# Create directories and
|
| 13 |
-
RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs && \
|
| 14 |
touch /app/config_modification_tutorial.txt && \
|
| 15 |
-
chmod -R
|
| 16 |
-
[ -f /app/config.txt ] && chmod 775 /app/config.txt || touch /app/config.txt && chmod 775 /app/config.txt
|
| 17 |
|
| 18 |
EXPOSE 8888
|
| 19 |
|
|
|
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple
|
| 11 |
|
| 12 |
+
# Create directories and ensure full write permissions
|
| 13 |
+
RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/models/checkpoints /app/repositories/Fooocus/models/loras /app/repositories/Fooocus/models/embeddings /app/repositories/Fooocus/models/vae_approx /app/repositories/Fooocus/models/upscale_models /app/repositories/Fooocus/models/inpaint /app/repositories/Fooocus/models/controlnet /app/repositories/Fooocus/outputs && \
|
| 14 |
touch /app/config_modification_tutorial.txt && \
|
| 15 |
+
chmod -R 777 /app/presets /app/logs /app/repositories/Fooocus /app/config_modification_tutorial.txt /app/config.txt
|
|
|
|
| 16 |
|
| 17 |
EXPOSE 8888
|
| 18 |
|