https://github.com/friedjof/simple-flask-app
https://github.com/friedjof/simple-flask-app
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/friedjof/simple-flask-app
- Owner: Friedjof
- Created: 2023-09-04T01:25:49.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-09-04T01:33:20.000Z (over 1 year ago)
- Last Synced: 2023-09-04T22:16:30.541Z (over 1 year ago)
- Language: Python
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple flask app
_Author: [Friedjof Noweck](https://github.com/friedjof)_This is a simple flask app to understand the basics of flask and how to dockerize it.
## How to run
* manuel
* install deps `pip install -r requirements.txt`
* run it `python3 -m flask run --host=0.0.0.0`
* docker
* run it `docker compose up -d`
* stop it `docker compose down`
* rebuild it `docker compose up -d --build`## Tipps
Show all running containers
```bash
docker ps
```
List all images
```bash
docker images
```
Delete unused images
```bash
docker image prune -a
```## Links
* [Flask](https://flask.palletsprojects.com/en/2.0.x/)
* [Docker](https://www.docker.com/)
* [Docker Compose](https://docs.docker.com/compose/)