fuliai commited on
Commit
27130ba
·
verified ·
1 Parent(s): 09a928b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -5
Dockerfile CHANGED
@@ -1,5 +1,8 @@
1
  FROM nikolaik/python-nodejs:python3.10-nodejs20
2
 
 
 
 
3
  ENV USER=pn \
4
  HOMEDIR=/home/pn \
5
  PORT=7860 \
@@ -18,11 +21,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
18
 
19
  WORKDIR ${HOMEDIR}
20
 
21
- # 禁用 Docker 缓存,使用当时时间戳
22
- ARG CACHEBUST=$(date +%s)
23
-
24
- # git clone 到指定目录下
25
- RUN git clone https://github.com/aigem/edgeTTS-openai-api.git
26
 
27
  # 给所有 .sh 文件添加执行权限
28
  RUN chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \
 
1
  FROM nikolaik/python-nodejs:python3.10-nodejs20
2
 
3
+ # 禁用 Docker 缓存,使用当时时间戳
4
+ ARG CACHEBUST=$(date +%s)
5
+
6
  ENV USER=pn \
7
  HOMEDIR=/home/pn \
8
  PORT=7860 \
 
21
 
22
  WORKDIR ${HOMEDIR}
23
 
24
+ # git clone 到指定目录下,使用 CACHEBUST 来强制更新
25
+ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git && echo ${CACHEBUST}
 
 
 
26
 
27
  # 给所有 .sh 文件添加执行权限
28
  RUN chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \