| #基础镜像 | |
| FROM tindy2013/subconverter:latest | |
| # 切换到 base 工作目录 | |
| WORKDIR /base | |
| RUN echo "Contents of /base directory:" && ls -la /base | |
| # # 复制 /base 目录下的所有文件和文件夹 | |
| # COPY . /base | |
| # 创建 pref.ini 文件 | |
| RUN cp pref.example.toml pref.toml | |
| # 暴露端口 | |
| EXPOSE 25500 | |
| # 添加健康检查 | |
| # HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \ | |
| # CMD curl -f http://localhost:25500/version || exit 1 | |
| # 使用官方的启动命令 | |
| CMD ["subconverter"] |