|
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.209.6/containers/typescript-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 & TypeScript", |
5 |
| - "build": { |
6 |
| - "dockerfile": "Dockerfile", |
7 |
| - // Update 'VARIANT' to pick a Node version: 16, 14, 12. |
8 |
| - // Append -bullseye or -buster to pin to an OS version. |
9 |
| - // Use -bullseye variants on local on arm64/Apple Silicon. |
10 |
| - "args": { |
11 |
| - "VARIANT": "16" |
12 |
| - } |
13 |
| - }, |
| 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-bullseye", |
14 | 7 |
|
15 |
| - // Set *default* container specific settings.json values on container create. |
16 |
| - "settings": {}, |
| 8 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 9 | + // "features": {}, |
17 | 10 |
|
18 |
| - // Add the IDs of extensions you want installed when the container is created. |
19 |
| - "extensions": [ |
20 |
| - "dbaeumer.vscode-eslint", |
21 |
| - "svelte.svelte-vscode", |
22 |
| - "esbenp.prettier-vscode" |
23 |
| - ], |
| 11 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 12 | + // "forwardPorts": [], |
24 | 13 |
|
25 |
| - // Use 'forwardPorts' to make a list of ports inside the container available locally. |
26 |
| - // "forwardPorts": [], |
| 14 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 15 | + "postCreateCommand": "pnpm install", |
27 | 16 |
|
28 |
| - // Use 'postCreateCommand' to run commands after the container is created. |
29 |
| - "postCreateCommand": "pnpm install", |
| 17 | + // Configure tool-specific properties. |
| 18 | + "customizations": { |
| 19 | + "vscode": { |
| 20 | + "extensions": ["dbaeumer.vscode-eslint", "svelte.svelte-vscode", "esbenp.prettier-vscode"] |
| 21 | + } |
| 22 | + } |
30 | 23 |
|
31 |
| - // Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. |
32 |
| - "remoteUser": "node" |
| 24 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 25 | + // "remoteUser": "root" |
33 | 26 | }
|
0 commit comments