Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +9 -9
Dockerfile
CHANGED
@@ -18,20 +18,20 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
18 |
|
19 |
WORKDIR ${HOMEDIR}
|
20 |
|
21 |
-
#
|
22 |
-
RUN git clone https://github.com/aigem/edgeTTS-openai-api.git
|
23 |
|
24 |
# 给所有 .sh 文件添加执行权限
|
25 |
-
RUN chmod +x ${HOMEDIR}/src/*.sh \
|
26 |
-
&& ls -la ${HOMEDIR}/src \
|
27 |
-
&& ls -la ${HOMEDIR}
|
28 |
|
29 |
# 运行 setup.sh、sshx.sh 和 remix.sh
|
30 |
-
RUN ${HOMEDIR}/src/setup.sh \
|
31 |
-
&& if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/src/sshx.sh; fi \
|
32 |
-
&& if [ "$OPENAI_EDGE_TTS_INSTALL" = true ]; then ${HOMEDIR}/src/openai-edge-tts.sh; fi
|
33 |
|
34 |
# 暴露 Remix 端口
|
35 |
EXPOSE ${PORT}
|
36 |
|
37 |
-
ENTRYPOINT ["/home/pn/src/startup.sh"]
|
|
|
18 |
|
19 |
WORKDIR ${HOMEDIR}
|
20 |
|
21 |
+
# git clone 到指定目录下
|
22 |
+
RUN git clone https://github.com/aigem/edgeTTS-openai-api.git
|
23 |
|
24 |
# 给所有 .sh 文件添加执行权限
|
25 |
+
RUN chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \
|
26 |
+
&& ls -la ${HOMEDIR}/edgeTTS-openai-api/src \
|
27 |
+
&& ls -la ${HOMEDIR}/edgeTTS-openai-api
|
28 |
|
29 |
# 运行 setup.sh、sshx.sh 和 remix.sh
|
30 |
+
RUN ${HOMEDIR}/edgeTTS-openai-api/src/setup.sh \
|
31 |
+
&& if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/sshx.sh; fi \
|
32 |
+
&& if [ "$OPENAI_EDGE_TTS_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/openai-edge-tts.sh; fi
|
33 |
|
34 |
# 暴露 Remix 端口
|
35 |
EXPOSE ${PORT}
|
36 |
|
37 |
+
ENTRYPOINT ["/home/pn/edgeTTS-openai-api/src/startup.sh"]
|