ztgeng commited on
Commit
2238e4e
·
1 Parent(s): e1079a7

Try fixing error

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -2,8 +2,8 @@
2
  FROM python:3.9
3
 
4
  # 安装ffmpeg git
5
- RUN apt-get update && \
6
- apt-get install -y ffmpeg git
7
 
8
  # 克隆GitHub仓库到容器中的/app目录
9
  RUN git clone https://github.com/ZTGeng/ChatGPT-Face.git /app
@@ -12,6 +12,7 @@ RUN git clone https://github.com/ZTGeng/ChatGPT-Face.git /app
12
  WORKDIR /app
13
 
14
  # 安装Python依赖
 
15
  RUN pip install --no-cache-dir -r requirements.txt
16
 
17
  # copy Wav2Lip预训练模型
@@ -23,7 +24,7 @@ RUN mkdir -p keys
23
  RUN chmod -R 777 /app/keys
24
 
25
  ENV GOOGLE_APPLICATION_CREDENTIALS="keys/google-cloud-text-to-speech-key.json"
26
-
27
  RUN chmod -R 755 /usr/local/lib/python3.9/site-packages/librosa
28
 
29
  # 暴露Flask运行所需的端口,假设为5000
 
2
  FROM python:3.9
3
 
4
  # 安装ffmpeg git
5
+ RUN apt-get update && apt-get upgrade -y && \
6
+ apt-get install -y ffmpeg git
7
 
8
  # 克隆GitHub仓库到容器中的/app目录
9
  RUN git clone https://github.com/ZTGeng/ChatGPT-Face.git /app
 
12
  WORKDIR /app
13
 
14
  # 安装Python依赖
15
+ RUN pip install --no-cache-dir --upgrade pip
16
  RUN pip install --no-cache-dir -r requirements.txt
17
 
18
  # copy Wav2Lip预训练模型
 
24
  RUN chmod -R 777 /app/keys
25
 
26
  ENV GOOGLE_APPLICATION_CREDENTIALS="keys/google-cloud-text-to-speech-key.json"
27
+ ENV NUMBA_DISABLE_JIT=1
28
  RUN chmod -R 755 /usr/local/lib/python3.9/site-packages/librosa
29
 
30
  # 暴露Flask运行所需的端口,假设为5000