ztgeng commited on
Commit
bf6b0b5
·
1 Parent(s): 825680e

change port

Browse files
Files changed (2) hide show
  1. Dockerfile +3 -1
  2. start.sh +2 -2
Dockerfile CHANGED
@@ -22,8 +22,10 @@ COPY wav2lip_gan.pth wav2lip/weights/wav2lip_gan.pth
22
  RUN mkdir -p keys
23
  ENV GOOGLE_APPLICATION_CREDENTIALS="keys/google-cloud-text-to-speech-key.json"
24
 
 
 
25
  # 暴露Flask运行所需的端口,假设为5000
26
- EXPOSE 5000
27
 
28
  # 复制启动脚本到容器
29
  COPY start.sh /start.sh
 
22
  RUN mkdir -p keys
23
  ENV GOOGLE_APPLICATION_CREDENTIALS="keys/google-cloud-text-to-speech-key.json"
24
 
25
+ RUN chmod -R 755 /usr/local/lib/python3.9/site-packages/librosa
26
+
27
  # 暴露Flask运行所需的端口,假设为5000
28
+ EXPOSE 7680
29
 
30
  # 复制启动脚本到容器
31
  COPY start.sh /start.sh
start.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/sh
2
  # 将环境变量的内容写入凭证文件
3
- echo $GOOGLE_APPLICATION_CREDENTIALS_JSON
4
  echo $GOOGLE_APPLICATION_CREDENTIALS_JSON > /app/keys/google-cloud-text-to-speech-key.json
5
 
6
  # 启动 Flask 应用
7
- exec flask run --host=0.0.0.0
 
1
  #!/bin/sh
2
  # 将环境变量的内容写入凭证文件
3
+ # echo $GOOGLE_APPLICATION_CREDENTIALS_JSON
4
  echo $GOOGLE_APPLICATION_CREDENTIALS_JSON > /app/keys/google-cloud-text-to-speech-key.json
5
 
6
  # 启动 Flask 应用
7
+ exec flask run --host=0.0.0.0 --port=7680