# 建立版本库

- build docker 20240603-2
This commit is contained in:
yshtcn
2024-06-03 21:22:07 +08:00
commit 8c18a6fd4b
4 changed files with 108 additions and 0 deletions

19
Dockerfile Normal file
View File

@@ -0,0 +1,19 @@
# 使用官方的 Python 3.11 镜像作为基础镜像
FROM python:3.11-slim
# 设置工作目录
WORKDIR /app
# 复制当前目录中的内容到工作目录
COPY . /app
# 安装Flask
RUN pip install flask
# 暴露容器的80端口
EXPOSE 80
# 运行Flask应用
CMD ["python", "app.py"]