Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -9,8 +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 required directories with write permissions
|
13 |
-
RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs &&
|
|
|
|
|
14 |
|
15 |
EXPOSE 8888
|
16 |
|
|
|
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 required directories and config file with write permissions
|
13 |
+
RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs && \
|
14 |
+
touch /app/config.txt && \
|
15 |
+
chmod -R 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam /app/repositories/Fooocus/outputs /app/config.txt
|
16 |
|
17 |
EXPOSE 8888
|
18 |
|