Download Dockerfile from sugar404/subconv: direct link, hf CLI and curl.
- Browser
- Download file 539 Bytes
-
https://huggingface.co/spaces/sugar404/subconv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sugar404/subconv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sugar404/subconv/resolve/main/Dockerfile
539 Bytes
| #基础镜像 | |
| 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"] |