Skip to content

Commit ecba7b8

Browse files
committed
Set build context directory in devcontainer.json
Otherwise the default build context is the top level directory when building the dev container in JetBrain IDEs. VsCode seems to use the Dockerfile location as build context instead, meaning the container build works by default here.
1 parent 728da0f commit ecba7b8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.devcontainer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
// https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/cpp
33
{
44
"build": {
5-
"dockerfile": "docker/Dockerfile"
5+
"dockerfile": "docker/Dockerfile",
6+
"context": "docker",
67
},
78
"customizations": {
89
"vscode": {

0 commit comments

Comments
 (0)