Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -9,11 +9,11 @@ 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 files,
|
| 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 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs /app/config_modification_tutorial.txt && \
|
| 16 |
-
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 files, set permissions conditionally for config.txt
|
| 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 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs /app/config_modification_tutorial.txt && \
|
| 16 |
+
[ -f /app/config.txt ] && chmod 775 /app/config.txt || touch /app/config.txt && chmod 775 /app/config.txt
|
| 17 |
|
| 18 |
EXPOSE 8888
|
| 19 |
|