|
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 |
3 | 3 | { |
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": "16-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": {} |
11 | 9 | }, |
12 | 10 |
|
13 | | - // Set *default* container specific settings.json values on container create. |
14 | | - "settings": {}, |
15 | | - |
16 | | - // Add the IDs of extensions you want installed when the container is created. |
17 | | - "extensions": [ |
18 | | - "dbaeumer.vscode-eslint", |
19 | | - "mhutchie.git-graph", |
20 | | - "Angular.ng-template" |
21 | | - ], |
| 11 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 12 | + // "features": {}, |
22 | 13 |
|
23 | 14 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
24 | | - // "forwardPorts": [], |
| 15 | + "forwardPorts": [4200, 8681, 7200], |
25 | 16 |
|
26 | 17 | // Use 'postCreateCommand' to run commands after the container is created. |
27 | | - "postCreateCommand": "npm install -g @angular/cli;", |
| 18 | + // "postCreateCommand": "yarn install", |
28 | 19 |
|
29 | | - // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
30 | | - "remoteUser": "node", |
31 | | - "features": { |
32 | | - "docker-in-docker": { |
33 | | - "version": "latest", |
34 | | - "moby": false, |
35 | | - }, |
36 | | - "git": "os-provided" |
37 | | - } |
| 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" |
38 | 25 | } |
0 commit comments