Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
FROM nikolaik/python-nodejs:python3.10-nodejs20
|
| 2 |
|
| 3 |
# 禁用 Docker 缓存
|
| 4 |
-
ARG CACHEBUST=
|
| 5 |
|
| 6 |
ENV USER=pn \
|
| 7 |
HOMEDIR=/home/pn \
|
|
@@ -33,8 +33,7 @@ RUN chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \
|
|
| 33 |
RUN --mount=type=secret,id=apikey,mode=0444,required=true \
|
| 34 |
${HOMEDIR}/edgeTTS-openai-api/src/setup.sh \
|
| 35 |
&& if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/sshx.sh; fi \
|
| 36 |
-
&& if [ "$OPENAI_EDGE_TTS_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/openai-edge-tts.sh; fi
|
| 37 |
-
&& echo $(cat /run/secrets/apikey)
|
| 38 |
|
| 39 |
# 暴露 Remix 端口
|
| 40 |
EXPOSE ${PORT}
|
|
|
|
| 1 |
FROM nikolaik/python-nodejs:python3.10-nodejs20
|
| 2 |
|
| 3 |
# 禁用 Docker 缓存
|
| 4 |
+
ARG CACHEBUST=2
|
| 5 |
|
| 6 |
ENV USER=pn \
|
| 7 |
HOMEDIR=/home/pn \
|
|
|
|
| 33 |
RUN --mount=type=secret,id=apikey,mode=0444,required=true \
|
| 34 |
${HOMEDIR}/edgeTTS-openai-api/src/setup.sh \
|
| 35 |
&& if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/sshx.sh; fi \
|
| 36 |
+
&& if [ "$OPENAI_EDGE_TTS_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/openai-edge-tts.sh; fi
|
|
|
|
| 37 |
|
| 38 |
# 暴露 Remix 端口
|
| 39 |
EXPOSE ${PORT}
|