fuliai commited on
Commit
6863f9f
1 Parent(s): 27130ba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -1,7 +1,7 @@
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 \
@@ -21,8 +21,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
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 \
 
1
  FROM nikolaik/python-nodejs:python3.10-nodejs20
2
 
3
+ # 添加 CACHEBUST 参数
4
+ ARG CACHEBUST=1
5
 
6
  ENV USER=pn \
7
  HOMEDIR=/home/pn \
 
21
 
22
  WORKDIR ${HOMEDIR}
23
 
24
+ # 使用 CACHEBUST 参数来强制更新
25
+ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git && echo "Cache bust: ${CACHEBUST}"
26
 
27
  # 给所有 .sh 文件添加执行权限
28
  RUN chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \