tixforever/efgetts-openapi
1
1FROM nikolaik/python-nodejs:python3.10-nodejs202 3# 添加 CACHEBUST 参数4ARG CACHEBUST=15 6ENV USER=pn \7 HOMEDIR=/home/pn \8 PORT=6666 \9 SSHX_INSTALL=true \10 OPENAI_EDGE_TTS_INSTALL=true11 12RUN apt-get update && apt-get install -y --no-install-recommends \13 apt-utils \14 build-essential \15 libpq-dev \16 neofetch \17 git \18 curl \19 vim \20 && rm -rf /var/lib/apt/lists/*21 22WORKDIR ${HOMEDIR}23 24# 使用 CACHEBUST 参数来强制更新25RUN git clone https://github.com/aigem/edgeTTS-openai-api.git \26 && chmod +x ${HOMEDIR}/edgeTTS-openai-api/src/*.sh \27 && ls -la ${HOMEDIR}/edgeTTS-openai-api/src \28 && ls -la ${HOMEDIR}/edgeTTS-openai-api \29 && ${HOMEDIR}/edgeTTS-openai-api/src/setup.sh \30 && if [ "$SSHX_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/sshx.sh; fi \31 && if [ "$OPENAI_EDGE_TTS_INSTALL" = true ]; then ${HOMEDIR}/edgeTTS-openai-api/src/openai-edge-tts.sh; fi32 33# 暴露 Remix 端口34EXPOSE ${PORT}35 36# 在启动时设置 API_KEY 环境变量37ENTRYPOINT /home/pn/edgeTTS-openai-api/src/startup.sh