lydgs commited on
Commit
4968ded
·
verified ·
1 Parent(s): f4edf78

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用一个轻量的 Linux 发行版作为基础镜像
2
+ FROM debian:stable-slim
3
+
4
+ # 安装 git 和必要的系统工具(脚本可能用到)
5
+ RUN apt-get update && \
6
+ apt-get install -y git curl ca-certificates && \
7
+ rm -rf /var/lib/apt/lists/*
8
+
9
+ # 设置工作目录
10
+ WORKDIR /app
11
+
12
+ # 克隆 Stardew Valley Server Kit 仓库
13
+ RUN git clone https://github.com/wuxianggujun/StardewValleyServerKit.git .
14
+
15
+ # 给脚本添加执行权限
16
+ RUN chmod +x ./scripts/sdv-server.sh
17
+
18
+ # 容器启动时运行 setup 命令
19
+ # 注意:setup 过程可能需要交互(如输入 Steam 账号),建议结合环境变量或使用 -it 运行
20
+ CMD ["./scripts/sdv-server.sh", "setup"]