ZHZ1024 commited on
Commit
3d4d7ca
·
verified ·
1 Parent(s): 852cc01

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +17 -16
Dockerfile CHANGED
@@ -1,17 +1,18 @@
1
- # 使用官方Python镜像作为基础镜像
2
- FROM python:3.10-slim
3
-
4
- # 设置工作目录
5
- WORKDIR /app
6
-
7
- # 复制当前目录内容到容器中
8
- COPY . /app
9
-
10
- # 安装依赖
11
- RUN pip install --no-cache-dir -r requirements.txt
12
- RUN python -m playwright install
13
- # 暴露端口
14
- EXPOSE 8000
15
-
16
- # 运行应用
 
17
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ # 使用官方Python镜像作为基础镜像
2
+ FROM python:3.10-slim
3
+
4
+ # 设置工作目录
5
+ WORKDIR /app
6
+
7
+ # 复制当前目录内容到容器中
8
+ COPY . /app
9
+
10
+ # 安装依赖
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+ RUN python -m playwright install
13
+ RUN pip install requests
14
+ # 暴露端口
15
+ EXPOSE 8000
16
+
17
+ # 运行应用
18
  CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]