fuliai commited on
Commit
245f634
1 Parent(s): 3e7078f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -20,8 +20,6 @@ RUN --mount=type=secret,id=apikey,mode=0444,required=true \
20
  vim \
21
  && rm -rf /var/lib/apt/lists/*
22
 
23
- ENV API_KEY=$(cat /run/secrets/apikey)
24
-
25
  WORKDIR ${HOMEDIR}
26
 
27
  # 使用 CACHEBUST 参数来强制更新
@@ -36,4 +34,5 @@ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git \
36
  # 暴露 Remix 端口
37
  EXPOSE ${PORT}
38
 
39
- ENTRYPOINT ["/home/pn/edgeTTS-openai-api/src/startup.sh"]
 
 
20
  vim \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
 
23
  WORKDIR ${HOMEDIR}
24
 
25
  # 使用 CACHEBUST 参数来强制更新
 
34
  # 暴露 Remix 端口
35
  EXPOSE ${PORT}
36
 
37
+ # 在启动时设置 API_KEY 环境变量
38
+ ENTRYPOINT API_KEY=$(cat /run/secrets/apikey) && /home/pn/edgeTTS-openai-api/src/startup.sh