banao-tech commited on
Commit
45e9b5d
Β·
verified Β·
1 Parent(s): 6177576

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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 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
 
 
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