https://github.com/thatbeautifuldream/flask-demo
Demo Flask Server
https://github.com/thatbeautifuldream/flask-demo
docker-image
Last synced: 2 months ago
JSON representation
Demo Flask Server
- Host: GitHub
- URL: https://github.com/thatbeautifuldream/flask-demo
- Owner: thatbeautifuldream
- Created: 2023-04-27T10:50:59.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-27T11:21:40.000Z (about 3 years ago)
- Last Synced: 2025-03-21T15:19:52.409Z (over 1 year ago)
- Topics: docker-image
- Language: Python
- Homepage: https://hub.docker.com/repository/docker/milindmishra/flask-demo/general
- Size: 1000 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask Demo Application
- To run the application, run the following command:
```bash
docker container run -d -p 5000:5000 milindmishra/flask-demo:0.0.1.RELEASE
```
- To test the application, run the following command:
```bash
curl http://localhost:5000
```
- To stop the application, run the following command:
```bash
docker container stop
```
- To push the image to docker hub, run the following command:
```bash
docker image push milindmishra/flask-demo:0.0.1.RELEASE
```
- To pull the image from docker hub, run the following command:
```bash
docker image pull milindmishra/flask-demo:0.0.1.RELEASE
```
- To run the application with a different port, run the following command:
```bash
docker container run -d -p 5001:5000 milindmishra/flask-demo:0.0.1.RELEASE
```