Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -4,6 +4,7 @@ ENV TZ=Asia/Shanghai
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 7 |
COPY . /app
|
| 8 |
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
@@ -12,7 +13,8 @@ RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple
|
|
| 12 |
# Create required directories and files with write permissions
|
| 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 |
-
|
|
|
|
| 16 |
|
| 17 |
EXPOSE 8888
|
| 18 |
|
|
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Copy all files, forcing a fresh copy
|
| 8 |
COPY . /app
|
| 9 |
|
| 10 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 13 |
# Create required directories and files with write permissions
|
| 14 |
RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs && \
|
| 15 |
touch /app/config_modification_tutorial.txt && \
|
| 16 |
+
[ -f /app/config.txt ] && chmod 775 /app/config.txt || echo "Warning: /app/config.txt not found, will be created at runtime" && \
|
| 17 |
+
chmod -R 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs /app/config_modification_tutorial.txt
|
| 18 |
|
| 19 |
EXPOSE 8888
|
| 20 |
|