fuliai commited on
Commit
68e0ab4
1 Parent(s): 81f0ecf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +37 -0
Dockerfile ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nikolaik/python-nodejs:python3.10-nodejs20
2
+
3
+ ENV USER=pn \
4
+ HOMEDIR=/home/pn \
5
+ PORT=7860 \
6
+ SSHX_INSTALL=true \
7
+ OPENAI_EDGE_TTS_INSTALL=true
8
+
9
+ RUN apt-get update && apt-get install -y --no-install-recommends \
10
+ apt-utils \
11
+ build-essential \
12
+ libpq-dev \
13
+ neofetch \
14
+ git \
15
+ curl \
16
+ vim \
17
+ && rm -rf /var/lib/apt/lists/*
18
+
19
+ WORKDIR ${HOMEDIR}
20
+
21
+ # 复制文件
22
+ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git ${HOMEDIR}
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"]