banao-tech commited on
Commit
7baea82
Β·
verified Β·
1 Parent(s): a4d944e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -2
Dockerfile CHANGED
@@ -7,9 +7,11 @@ WORKDIR /app
7
  COPY . /app
8
 
9
  RUN pip install --no-cache-dir -r requirements.txt
10
-
11
  RUN pip install --no-cache-dir opencv-python-headless -i https://pypi.org/simple
12
 
 
 
 
13
  EXPOSE 8888
14
 
15
- CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "8888", "--skip-pip"]
 
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 required directories with write permissions
13
+ RUN mkdir -p /app/presets /app/logs /app/repositories/Fooocus/models/sam && chmod -R 775 /app/presets /app/logs /app/repositories/Fooocus/models/sam
14
+
15
  EXPOSE 8888
16
 
17
+ CMD ["python", "main.py", "--host", "0.0.0.0", "--port", "8888", "--skip-pip"]