gccnb commited on
Commit
e134f26
·
verified ·
1 Parent(s): b21d006

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -1
Dockerfile CHANGED
@@ -1 +1,19 @@
1
- RUN git clone https://github.com/iidamie/deepseek2api.git
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用轻量级基础镜像(如 Alpine)
2
+ FROM alpine:3.16
3
+
4
+ # 安装 Git 工具
5
+ RUN apk update && apk add --no-cache git
6
+
7
+ # 克隆仓库到 /app 目录
8
+ RUN git clone https://github.com/iidamie/deepseek2api.git /app
9
+
10
+ # 设置工作目录
11
+ WORKDIR /app
12
+
13
+ # 可选:添加应用启动命令(根据项目需求修改)
14
+ # 例如,如果项目是 Python 项目,可能需要安装依赖并启动服务
15
+ # RUN pip install -r requirements.txt
16
+ # CMD ["python", "app.py"]
17
+
18
+ # 默认进入交互式终端
19
+ CMD ["sh"]