https://github.com/stefanfreitag/flask-hello-world
Simple Flask app to show the Hello World message
https://github.com/stefanfreitag/flask-hello-world
flask python
Last synced: 3 months ago
JSON representation
Simple Flask app to show the Hello World message
- Host: GitHub
- URL: https://github.com/stefanfreitag/flask-hello-world
- Owner: stefanfreitag
- Created: 2020-10-12T11:20:54.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-05-15T17:27:57.000Z (about 2 years ago)
- Last Synced: 2025-03-10T23:28:22.645Z (over 1 year ago)
- Topics: flask, python
- Language: CSS
- Homepage:
- Size: 21.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple HTTP Service
A simple _Hello World_ web application.
In the background it utilizes Python3 and Flask.
The web server starts by default at port 5000 and exposes a basic HTML page under _/_.
The page shows e.g. the IP address.
## Building the image
- Check out the code from the git repository and run.
```sh
REV_TAG=$(git log -1 --pretty=format:%h)
docker build -t flask-hello-world:$REV_TAG .
```
- Listing the available images
```sh
docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
flask-hello-world latest c1440e991356 14 seconds ago 113MB
```
- Start a container and bind the container port 5000.
```sh
docker run -d -p 5000:5000 flask-hello-world:latest
0c362cfed041d0580386e0b7ef24c18317a378a8319744d38f8b81ddf82d3c02
```
## Links
- [Flask](https://flask.palletsprojects.com/en/1.1.x/)
- [Python.org](https://www.python.org/)