- 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 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.
huynhthviet/dockerhub:flaskapp-docker
- We can run docker image created by workflow in the same way as above