ztgeng commited on
Commit
450cb5e
1 Parent(s): 04617a3

add chown to user in COPY operations

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -12,8 +12,8 @@ RUN git clone https://github.com/ZTGeng/ChatGPT-Face.git /app
12
  WORKDIR /app
13
 
14
  # 复制外部网页文件到容器中
15
- COPY delay_message_en.html static/delay_message_en.html
16
- COPY delay_message_zh.html static/delay_message_zh.html
17
 
18
  # 安装Python依赖
19
  RUN pip install --no-cache-dir --upgrade pip
@@ -21,7 +21,7 @@ RUN pip install --no-cache-dir -r requirements.txt
21
 
22
  # copy Wav2Lip预训练模型
23
  RUN mkdir -p wav2lip/weights
24
- COPY wav2lip_gan.pth wav2lip/weights/wav2lip_gan.pth
25
 
26
  # copy google credentials
27
  RUN mkdir -p keys
@@ -35,11 +35,11 @@ ENV NUMBA_CACHE_DIR=/tmp/numba_cache
35
  # ENV NUMBA_DISABLE_JIT=1
36
  # RUN chmod -R 755 /usr/local/lib/python3.9/site-packages/librosa
37
 
38
- # 暴露Flask运行所需的端口,假设为5000
39
  EXPOSE 7860
40
 
41
  # 复制启动脚本到容器
42
- COPY start.sh /start.sh
43
  RUN chmod +x /start.sh
44
 
45
  # 使用启动脚本来运行Flask应用
 
12
  WORKDIR /app
13
 
14
  # 复制外部网页文件到容器中
15
+ COPY --chown=user delay_message_en.html static/delay_message_en.html
16
+ COPY --chown=user delay_message_zh.html static/delay_message_zh.html
17
 
18
  # 安装Python依赖
19
  RUN pip install --no-cache-dir --upgrade pip
 
21
 
22
  # copy Wav2Lip预训练模型
23
  RUN mkdir -p wav2lip/weights
24
+ COPY --chown=user wav2lip_gan.pth wav2lip/weights/wav2lip_gan.pth
25
 
26
  # copy google credentials
27
  RUN mkdir -p keys
 
35
  # ENV NUMBA_DISABLE_JIT=1
36
  # RUN chmod -R 755 /usr/local/lib/python3.9/site-packages/librosa
37
 
38
+ # 暴露Flask运行所需的端口
39
  EXPOSE 7860
40
 
41
  # 复制启动脚本到容器
42
+ COPY --chown=user start.sh /start.sh
43
  RUN chmod +x /start.sh
44
 
45
  # 使用启动脚本来运行Flask应用