Skip to content

Instantly share code, notes, and snippets.

@yashprakash13
Created May 30, 2021 17:00
Show Gist options
  • Save yashprakash13/fc08dad6adb993147f8750cca63beb98 to your computer and use it in GitHub Desktop.
Save yashprakash13/fc08dad6adb993147f8750cca63beb98 to your computer and use it in GitHub Desktop.
Gist starter code to set up Docker Development Environment in VSCode.
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return {"message": "Hello World"}
# 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