🗒️Python项目打包成Docker镜像
00 分钟
2024-1-25
2024-9-13
type
status
date
slug
summary
password
tags
category
icon

1、在项目根路径下编写Dockerfile文件

2、编写需要的docker-compose.yaml文件

其它详细参数参考网站:https://zhuanlan.zhihu.com/p/387840381

3、执行docker打包命令生成容器

4、根据需要运行容器即可