37 lines
990 B
JSON
37 lines
990 B
JSON
{
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Docker: Build Image",
|
|
"type": "docker-build",
|
|
"platform": "python",
|
|
"dockerBuild": {
|
|
"context": "${workspaceFolder}",
|
|
"dockerfile": "${workspaceFolder}/Dockerfile",
|
|
"tag": "post-it:dev"
|
|
}
|
|
},
|
|
{
|
|
"label": "Run post-it (interactive, show logs)",
|
|
"type": "shell",
|
|
"dependsOn": ["Docker: Build Image"],
|
|
"command": "docker",
|
|
"args": [
|
|
"run",
|
|
"--rm",
|
|
"-it",
|
|
"--name",
|
|
"post-it-dev",
|
|
"-v",
|
|
"${workspaceFolder}/config:/app/config",
|
|
"post-it:dev"
|
|
],
|
|
"presentation": {
|
|
"reveal": "always",
|
|
"panel": "shared"
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|