plutosss commited on
Commit
57ed26f
·
verified ·
1 Parent(s): 51d13dc

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -0
Dockerfile ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用Python 3.10基础镜像
2
+ FROM python:3.10
3
+
4
+ # 设置工作目录
5
+ WORKDIR /app
6
+
7
+ # 复制依赖文件
8
+ COPY requirements.txt .
9
+
10
+ # 安装依赖
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ # 复制应用代码
14
+ COPY . .
15
+
16
+ # 指定容器启动命令
17
+ CMD ["python", "your_script.py"] # 替换为你的启动脚本