Sign inSign up

adminhub/fast-api

By adminhub

•Updated over 6 years ago

Image
0

240

adminhub/fast-api repository overview

⁠FastAPi

WORKDIR /work

EXPOSE 80

CMD [ "python", "./main.py" ]

⁠main.py
import uvicorn
from api import app
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
async def read():
    return {"hello":  "world" }

if __name__ == "__main__":
    uvicorn.run(app, host="0.0.0.0", port=80)   

Tag summary

Content type

Image

Digest

Size

354.1 MB

Last updated

over 6 years ago

docker pull adminhub/fast-api