hzruo commited on
Commit
4a25bfa
·
verified ·
1 Parent(s): 278b50d

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -0
Dockerfile ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # 安装依赖
6
+ COPY requirement.txt .
7
+ RUN pip install --no-cache-dir -r requirement.txt
8
+
9
+ # 复制应用代码
10
+ COPY app.py .
11
+
12
+ # 暴露端口
13
+ EXPOSE 7860
14
+
15
+ # 启动应用
16
+ CMD ["python", "app.py"]