fuliai commited on
Commit
552fe6f
·
verified ·
1 Parent(s): b141738

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -20,6 +20,8 @@ RUN --mount=type=secret,id=apikey,mode=0444,required=true \
20
  vim \
21
  && rm -rf /var/lib/apt/lists/*
22
 
 
 
23
  WORKDIR ${HOMEDIR}
24
 
25
  # 使用 CACHEBUST 参数来强制更新
@@ -34,4 +36,4 @@ RUN git clone https://github.com/aigem/edgeTTS-openai-api.git \
34
  # 暴露 Remix 端口
35
  EXPOSE ${PORT}
36
 
37
- ENTRYPOINT ["/home/pn/edgeTTS-openai-api/src/startup.sh"]
 
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
  # 暴露 Remix 端口
37
  EXPOSE ${PORT}
38
 
39
+ ENTRYPOINT ["/home/pn/edgeTTS-openai-api/src/startup.sh"]