Created
May 30, 2021 17:00
-
-
Save yashprakash13/fc08dad6adb993147f8750cca63beb98 to your computer and use it in GitHub Desktop.
Gist starter code to set up Docker Development Environment in VSCode.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from fastapi import FastAPI | |
app = FastAPI() | |
@app.get("/") | |
async def root(): | |
return {"message": "Hello World"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# To ensure app dependencies are ported from your virtual environment/host machine into your container, run 'pip freeze > requirements.txt' in the terminal to overwrite this file | |
fastapi[all]==0.63.0 | |
uvicorn[standard]==0.13.4 | |
gunicorn==20.0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment