Download Dockerfile from lydgs/kit1: direct link, hf CLI and curl.
- Browser
- Download file 670 Bytes
-
https://huggingface.co/spaces/lydgs/kit1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lydgs/kit1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lydgs/kit1/resolve/main/Dockerfile
670 Bytes
| # 使用一个轻量的 Linux 发行版作为基础镜像 | |
| FROM debian:stable-slim | |
| # 安装 git 和必要的系统工具(脚本可能用到) | |
| RUN apt-get update && \ | |
| apt-get install -y git curl ca-certificates && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 克隆 Stardew Valley Server Kit 仓库 | |
| RUN git clone https://github.com/wuxianggujun/StardewValleyServerKit.git . | |
| # 给脚本添加执行权限 | |
| RUN chmod +x ./scripts/sdv-server.sh | |
| # 容器启动时运行 setup 命令 | |
| # 注意:setup 过程可能需要交互(如输入 Steam 账号),建议结合环境变量或使用 -it 运行 | |
| CMD ["./scripts/sdv-server.sh", "setup"] |