|
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.192.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: 12, 14, 16 |
8 | | - "args": { "VARIANT": "14" } |
9 | | - }, |
| 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:0-18", |
10 | 7 |
|
11 | | - // Set *default* container specific settings.json values on container create. |
12 | | - "settings": {}, |
13 | | - |
14 | | - // Add the IDs of extensions you want installed when the container is created. |
15 | | - "extensions": [ |
16 | | - "dbaeumer.vscode-eslint" |
17 | | - ], |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + // "features": {}, |
18 | 10 |
|
19 | 11 | // Use 'forwardPorts' to make a list of ports inside the container available locally. |
20 | 12 | // "forwardPorts": [], |
21 | 13 |
|
22 | 14 | // Use 'postCreateCommand' to run commands after the container is created. |
23 | | - "postCreateCommand": "npm install", |
| 15 | + "postCreateCommand": "npm install" |
| 16 | + |
| 17 | + // Configure tool-specific properties. |
| 18 | + // "customizations": {}, |
24 | 19 |
|
25 | | - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
26 | | - "remoteUser": "node" |
| 20 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 21 | + // "remoteUser": "root" |
27 | 22 | } |
0 commit comments