File size: 649 Bytes
e795d16
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
    "name": "FastAPI CodeSpace",
    "dockerFile": "Dockerfile",
    "remoteUser": "vscode",
      "extensions": [
      "ms-python.python",
      "ms-python.vscode-pylance",
      "dbaeumer.vscode-eslint"
    ],  
    "settings": {
      "python.autoComplete.addBrackets": true
    },
  
    "forwardPorts": [8000],
  
    "mounts": [
      "source=/var/run/docker.sock,target=/var/run/docker.sock,type=bind",
      "source=${localWorkspaceFolder}/.env,target=/app/.env,type=bind"
    ],
  
    "runArgs": ["-i"],
  
    "postCreateCommand": "pip install -r requirements.txt",
  
    "remoteEnv": {
      "FASTAPI_ENV": "development"
    }
  }