Spaces:
Paused
Paused
Download Dockerfile from DXOLSLL/my-sub-backend102: direct link, hf CLI and curl.
- Browser
- Download file 286 Bytes
-
https://huggingface.co/spaces/DXOLSLL/my-sub-backend102/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DXOLSLL/my-sub-backend102/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DXOLSLL/my-sub-backend102/resolve/main/Dockerfile
286 Bytes
| FROM tindy2013/subconverter:latest | |
| # 官方最新版镜像的文件都存放在 /base 目录下 | |
| # 我们用通配符 pref.* 精准匹配 pref.ini 或 pref.toml,将默认的 25500 端口强行替换为 7860 | |
| RUN find /base -name "pref.*" -exec sed -i 's/25500/7860/g' {} + | |
| EXPOSE 7860 |