1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-19 07:18:06 +02:00
awesome-compose/fastapi/app/main.py
Valon Januzaj b7685ad15f
Add fastapi to the list of compose projects
* Fastapi base Dockerfile
* requirements.txt for fastapi project
* Add documentation on how to run the application
* Add entrypoint for fastapi application
* Add docker-compose.yml for fastapi

Signed-off-by: vjanz <valon.januzaj98@gmail.com>
2021-10-10 23:38:34 +02:00

8 lines
109 B
Python

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def hello_world():
return {"message": "OK"}