33 lines
544 B
JSON
33 lines
544 B
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"type": "docker-build",
|
|
"label": "docker-build",
|
|
"platform": "python",
|
|
"dockerBuild": {
|
|
"tag": "fastapitest:latest",
|
|
"dockerfile": "${workspaceFolder}/Dockerfile",
|
|
"context": "${workspaceFolder}",
|
|
"pull": true
|
|
}
|
|
},
|
|
{
|
|
"type": "docker-run",
|
|
"label": "docker-run: debug",
|
|
"dependsOn": [
|
|
"docker-build"
|
|
],
|
|
"python": {
|
|
"args": [
|
|
"app.main:app",
|
|
"--host",
|
|
"0.0.0.0",
|
|
"--port",
|
|
"8090"
|
|
],
|
|
"module": "uvicorn"
|
|
}
|
|
}
|
|
]
|
|
} |