- docker
- docker-compose
npm install -g @devcontainers/cli
git clone https://github.com/mrchoke/devcontainer-from-scratch.git
cd devcontainer-from-scratch
devcontainer up --workspace-folder ./
devcontainer exec --workspace-folder ./ fish
vim main.py
main.py
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
return { "I ♥️ ": "You" }
uvicorn main:app --host=0.0.0.0
curl http://localhost:8000
Or open with web browser
sudo apt update
sudo apt install xyz
sudo pip install god
docker ps
docker stop your-devcontainer
docker rm your-devcontainer