46 lines
879 B
JSON
46 lines
879 B
JSON
|
{
|
||
|
"version": "2.0.0",
|
||
|
"tasks": [
|
||
|
{
|
||
|
"type": "docker-build",
|
||
|
"label": "docker-build",
|
||
|
"platform": "node",
|
||
|
"dockerBuild": {
|
||
|
"dockerfile": "${workspaceFolder}/nodejs/src/Dockerfile",
|
||
|
"context": "${workspaceFolder}/nodejs/src",
|
||
|
"pull": true
|
||
|
},
|
||
|
"node": {
|
||
|
"package": "${workspaceFolder}/nodejs/src/package.json"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "docker-run",
|
||
|
"label": "docker-run: release",
|
||
|
"dependsOn": [
|
||
|
"docker-build"
|
||
|
],
|
||
|
"platform": "node",
|
||
|
"node": {
|
||
|
"package": "${workspaceFolder}/nodejs/src/package.json"
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"type": "docker-run",
|
||
|
"label": "docker-run: debug",
|
||
|
"dependsOn": [
|
||
|
"docker-build"
|
||
|
],
|
||
|
"dockerRun": {
|
||
|
"env": {
|
||
|
"DEBUG": "*",
|
||
|
"NODE_ENV": "development"
|
||
|
}
|
||
|
},
|
||
|
"node": {
|
||
|
"package": "${workspaceFolder}/nodejs/src/package.json",
|
||
|
"enableDebugging": true
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|