fuliai commited on
Commit
5420100
1 Parent(s): 54a8188

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -9,8 +9,7 @@ ENV USER=pn \
9
  SSHX_INSTALL=true \
10
  OPENAI_EDGE_TTS_INSTALL=true
11
 
12
- RUN --mount=type=secret,id=apikey,mode=0444,required=true \
13
- apt-get update && apt-get install -y --no-install-recommends \
14
  apt-utils \
15
  build-essential \
16
  libpq-dev \
@@ -35,4 +34,4 @@ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git \
35
  EXPOSE ${PORT}
36
 
37
  # 在启动时设置 API_KEY 环境变量
38
- ENTRYPOINT API_KEY="$(cat /run/secrets/apikey)" && /home/pn/edgeTTS-openai-api/src/startup.sh
 
9
  SSHX_INSTALL=true \
10
  OPENAI_EDGE_TTS_INSTALL=true
11
 
12
+ RUN apt-get update && apt-get install -y --no-install-recommends \
 
13
  apt-utils \
14
  build-essential \
15
  libpq-dev \
 
34
  EXPOSE ${PORT}
35
 
36
  # 在启动时设置 API_KEY 环境变量
37
+ ENTRYPOINT /home/pn/edgeTTS-openai-api/src/startup.sh