|
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": "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": {} |
11 | 9 | }, |
12 | 10 |
|
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": {}, |
24 | 13 |
|
25 | 14 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
26 | | - // "forwardPorts": [], |
| 15 | + "forwardPorts": [4200, 8681, 7200], |
27 | 16 |
|
28 | 17 | // Use 'postCreateCommand' to run commands after the container is created. |
29 | | - "postCreateCommand": "npm install -g @angular/cli;", |
| 18 | + // "postCreateCommand": "yarn install", |
30 | 19 |
|
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" |
36 | 25 | } |
0 commit comments