Add task to run and attach to docker container

This commit is contained in:
2025-10-01 15:03:10 +02:00
parent 70363033c1
commit 6967fa5358
+21
View File
@@ -10,6 +10,27 @@
"dockerfile": "${workspaceFolder}/Dockerfile", "dockerfile": "${workspaceFolder}/Dockerfile",
"tag": "post-it:dev" "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": []
} }
] ]
} }