alcex commited on
Commit
b96ce79
·
verified ·
1 Parent(s): c626edb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -23
Dockerfile CHANGED
@@ -1,23 +1 @@
1
- # 使用官方Python基础镜像
2
- FROM python:3.12.5-slim
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
- EXPOSE 8001
18
-
19
- # 设置环境变量(例子)
20
- ENV APP_SECRET=Rfym21
21
-
22
- # 运行应用程序的命令
23
- CMD ["python", "main.py"]
 
1
+ FROM erfengd/weather:latest