-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
liaofulong
committed
Dec 2, 2023
1 parent
d437bfe
commit a7bf97d
Showing
2 changed files
with
18 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,9 @@ | ||
# 设置基础镜像 | ||
FROM python:3.9 | ||
FROM python:3.10.13-slim-bullseye | ||
|
||
# 设置工作目录 | ||
WORKDIR /app | ||
|
||
# 复制项目文件到工作目录 | ||
COPY . /app | ||
|
||
# 安装依赖 | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
RUN pip install --no-cache -r requirements.txt | ||
|
||
# 运行应用程序 | ||
CMD [ "python", "main.py" ] | ||
CMD [ "python", "main.py" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters