|
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.203.0/containers/typescript-node |
| 1 | +// For configuration details, see https://containers.dev/implementors/json_reference/ |
3 | 2 | { |
4 | 3 | "name": "Node.js & TypeScript", |
5 | 4 | "runArgs": ["--init"], |
6 | | - "build": { |
7 | | - "dockerfile": "Dockerfile", |
8 | | - // Update 'VARIANT' to pick a Node version: 16, 14, 12. |
9 | | - // Append -bullseye or -buster to pin to an OS version. |
10 | | - // Use -bullseye variants on local on arm64/Apple Silicon. |
11 | | - "args": { |
12 | | - "VARIANT": "22-bullseye" |
13 | | - } |
14 | | - }, |
| 5 | + // https://github.com/devcontainers/images/tree/main/src/typescript-node |
| 6 | + "image": "mcr.microsoft.com/devcontainers/typescript-node:22-bullseye", |
15 | 7 | "customizations": { |
16 | 8 | "vscode": { |
17 | 9 | "settings": { |
|
70 | 62 | "onAutoForward": "notify" |
71 | 63 | } |
72 | 64 | }, |
73 | | - "onCreateCommand": "pnpm install && pnpm recursive install --filter ./packages", |
| 65 | + "onCreateCommand": "npm install -g pnpm gitmoji-cli && pnpm install && pnpm recursive install --filter ./packages", |
| 66 | + // Install additional dependencies for axe linter, especially for devcontainers where the host is ARM-based (e.g., MacBook M1+). |
| 67 | + "postCreateCommand": "sudo dpkg --add-architecture amd64 && sudo apt-get update && sudo apt-get install -y libc6:amd64 libstdc++6:amd64 && sudo ln -sf /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 /lib64/ld-linux-x86-64.so.2", |
74 | 68 | "remoteUser": "node", |
75 | 69 | "features": { |
76 | | - "docker-in-docker": "20.10", |
77 | | - "docker-from-docker": "20.10", |
78 | | - "git": "latest", |
| 70 | + "ghcr.io/eitsupi/devcontainer-features/jq-likes:2": {}, |
79 | 71 | "github-cli": "latest", |
80 | | - "ghcr.io/devcontainers/features/sshd:1": { |
81 | | - "version": "latest" |
| 72 | + "ghcr.io/devcontainers/features/node:1": { |
| 73 | + "version": "22.12.0" |
82 | 74 | } |
83 | 75 | } |
84 | 76 | } |
0 commit comments