Skip to content

Commit 3b2ce1b

Browse files
committed
Update devcontainer config for newer format
1 parent 2c304bd commit 3b2ce1b

2 files changed

Lines changed: 16 additions & 43 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 0 additions & 16 deletions
This file was deleted.

.devcontainer/devcontainer.json

Lines changed: 16 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,25 @@
1-
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2-
// https://github.com/microsoft/vscode-dev-containers/tree/v0.234.0/containers/javascript-node
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
2+
// README at: https://github.com/devcontainers/templates/tree/main/src/typescript-node
33
{
4-
"name": "Node.js",
5-
"build": {
6-
"dockerfile": "Dockerfile",
7-
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
8-
// Append -bullseye or -buster to pin to an OS version.
9-
// Use -bullseye variants on local arm64/Apple Silicon.
10-
"args": { "VARIANT": "20-bullseye" }
4+
"name": "Node.js & TypeScript",
5+
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
6+
"image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm",
7+
"features": {
8+
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
119
},
1210

13-
// Set *default* container specific settings.json values on container create.
14-
"customizations": {
15-
"vscode": {
16-
"settings": {},
17-
"extensions": [
18-
"dbaeumer.vscode-eslint",
19-
"mhutchie.git-graph",
20-
"Angular.ng-template"
21-
]
22-
}
23-
},
11+
// Features to add to the dev container. More info: https://containers.dev/features.
12+
// "features": {},
2413

2514
// Use 'forwardPorts' to make a list of ports inside the container available locally.
26-
// "forwardPorts": [],
15+
"forwardPorts": [4200, 8681, 7200],
2716

2817
// Use 'postCreateCommand' to run commands after the container is created.
29-
"postCreateCommand": "npm install -g @angular/cli;",
18+
// "postCreateCommand": "yarn install",
3019

31-
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
32-
"remoteUser": "node",
33-
"features": {
34-
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
35-
}
20+
// Configure tool-specific properties.
21+
// "customizations": {},
22+
23+
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
24+
// "remoteUser": "root"
3625
}

0 commit comments

Comments
 (0)