Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +3 -4
Dockerfile
CHANGED
|
@@ -4,17 +4,16 @@ ENV TZ=Asia/Shanghai
|
|
| 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
|
| 11 |
RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple
|
| 12 |
|
| 13 |
-
# Create
|
| 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 |
-
|
| 17 |
-
chmod
|
| 18 |
|
| 19 |
EXPOSE 8888
|
| 20 |
|
|
|
|
| 4 |
|
| 5 |
WORKDIR /app
|
| 6 |
|
|
|
|
| 7 |
COPY . /app
|
| 8 |
|
| 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, then set permissions explicitly
|
| 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 |
|