https://github.com/thanhvie/flask-docker
including an example workflow for building and pushing docker image to a docker image repository
https://github.com/thanhvie/flask-docker
docker docker-image dockerfile github-actions workflow
Last synced: about 2 months ago
JSON representation
including an example workflow for building and pushing docker image to a docker image repository
- Host: GitHub
- URL: https://github.com/thanhvie/flask-docker
- Owner: thanhvie
- Created: 2022-02-18T08:29:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-03-21T13:26:43.000Z (over 4 years ago)
- Last Synced: 2025-01-14T06:46:13.343Z (over 1 year ago)
- Topics: docker, docker-image, dockerfile, github-actions, workflow
- Language: Dockerfile
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# how to run flask-docker
- Install docker if you don't have yet
- Run docker image below, we will run the image in detach mode and at port 5000
````
docker run -d -p 5000:5000 huynhthviet/dockerhub:flaskapp-docker
````
- Access the web app at localhost:5000
# github actions
Github actions show an example workflow for building and pushing docker image to a docker image repository.
Everytime the code submitted in master/main branch, a process of building and pushing docker image will be trigger.
The docker image of every build will be assigned a different image tag.
## The image repository for this project is here
[huynhthviet/dockerhub:flaskapp-docker](https://github.com/marketplace/actions/build-and-push-docker-images)
## Run docker image created by github actions workflow
- We can run docker image created by workflow in the same way as above