yxmiler commited on
Commit
50cb2a9
·
verified ·
1 Parent(s): b03e255

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -8
Dockerfile CHANGED
@@ -1,16 +1,14 @@
1
- FROM python:3.9-slim
2
 
3
- # 设置工作目录
4
  WORKDIR /app
5
 
6
- # 复制应用代码
7
- COPY . .
 
8
 
9
- # 安装依赖
10
- RUN pip install --no-cache-dir aiohttp quart cloudscraper loguru python-dotenv quart-cors
11
 
12
- # 暴露端口
13
  EXPOSE 5200
14
 
15
- # 运行应用
16
  CMD ["python", "app.py"]
 
1
+ FROM python:3.10-slim
2
 
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
6
+
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ COPY . .
 
10
 
11
+ ENV PORT=5200
12
  EXPOSE 5200
13
 
 
14
  CMD ["python", "app.py"]