# 创建镜像
$ docker build -t flask_app:v1 .
$ docker image ls -a
$ docker image inspect flask_app:v1
# 推送至Docker Hub
$ docker login
$ docker image tag flask_app:v1 pphszx/flask_app:v1
$ docker push pphszx/flask_app:v1
# 映射本地目录,修改环境变量,方便开发
$ docker container run -p 4000:80 -v $(pwd):/data --name flask_test -e SUPERSET_ENV=dev -d flask_app:v1
$ curl http://0.0.0.0:4000
-
Notifications
You must be signed in to change notification settings - Fork 0
License
pphszx/DevOps
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published