Skip to content

Commit 795489a

Browse files
committed
updates to dev container
1 parent ce5c308 commit 795489a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.devcontainer/devcontainer.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
"name": ".NET in Codespaces",
33
"image": "mcr.microsoft.com/dotnet/sdk:8.0-preview",
44
"features": {
5-
"ghcr.io/devcontainers/features/docker-from-docker:1": {
6-
"version": "20.10"
7-
},
5+
"ghcr.io/devcontainers/features/docker-in-docker:2": {},
86
"ghcr.io/devcontainers/features/github-cli:1": {
97
"version": "2"
108
},
@@ -13,7 +11,8 @@
1311
},
1412
"ghcr.io/azure/azure-dev/azd:0": {
1513
"version": "latest"
16-
}
14+
},
15+
"ghcr.io/devcontainers/features/common-utils:2": {}
1716
},
1817
"customizations": {
1918
"vscode": {
@@ -32,23 +31,23 @@
3231
8080,
3332
8081
3433
],
35-
"postCreateCommand": "dotnet restore",
36-
"remoteUser": "vscode",
34+
"postCreateCommand": "cd ./SampleApp && dotnet restore",
3735
"hostRequirements": {
3836
"memory": "8gb",
3937
"cpus": 4
4038
},
4139
"remoteEnv": {
42-
"PATH": "${containerWorkspaceFolder}/.dotnet:${containerEnv:PATH}",
4340
"DOTNET_MULTILEVEL_LOOKUP": "0",
4441
"TARGET": "net8.0"
4542
},
4643
"portsAttributes": {
4744
"8080": {
48-
"label": "Weather API"
45+
"label": "Weather API",
46+
"onAutoForward": "notify"
4947
},
5048
"8081": {
51-
"label": "Weather Front End"
49+
"label": "Weather Front End",
50+
"onAutoForward": "notify"
5251
}
5352
}
5453
}

0 commit comments

Comments
 (0)