Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
FROM nikolaik/python-nodejs:python3.10-nodejs20
|
2 |
|
3 |
# 添加 CACHEBUST 参数
|
4 |
-
ARG CACHEBUST=
|
5 |
|
6 |
ENV USER=pn \
|
7 |
HOMEDIR=/home/pn \
|
@@ -35,4 +35,4 @@ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git \
|
|
35 |
EXPOSE ${PORT}
|
36 |
|
37 |
# 在启动时设置 API_KEY 环境变量
|
38 |
-
ENTRYPOINT API_KEY
|
|
|
1 |
FROM nikolaik/python-nodejs:python3.10-nodejs20
|
2 |
|
3 |
# 添加 CACHEBUST 参数
|
4 |
+
ARG CACHEBUST=1
|
5 |
|
6 |
ENV USER=pn \
|
7 |
HOMEDIR=/home/pn \
|
|
|
35 |
EXPOSE ${PORT}
|
36 |
|
37 |
# 在启动时设置 API_KEY 环境变量
|
38 |
+
ENTRYPOINT API_KEY="$(cat /run/secrets/apikey)" && /home/pn/edgeTTS-openai-api/src/startup.sh
|