chore: Add Dockerfile for containerization
This commit is contained in:
parent
e0dd319239
commit
93989ceeec
14
Dockerfile
Normal file
14
Dockerfile
Normal file
@ -0,0 +1,14 @@
|
||||
# 使用自定义 Docker Registry 中的官方 Python 镜像作为基础镜像
|
||||
FROM git.tunpok.com/ching/python-env:latest
|
||||
|
||||
# 设置工作目录
|
||||
WORKDIR /app
|
||||
|
||||
# 将当前目录下的所有文件复制到容器中
|
||||
COPY . .
|
||||
|
||||
# port number
|
||||
EXPOSE 5000
|
||||
|
||||
# run flask app
|
||||
CMD ["python", "app.py"]
|
||||
Loading…
x
Reference in New Issue
Block a user