|
| 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 | +{ |
| 4 | + "name": "Typescript Starter", |
| 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-22-bullseye", |
| 7 | + "build": { |
| 8 | + "dockerfile": "Dockerfile", |
| 9 | + // Use 'context' to specify a custom build context. More info: https://aka.ms/vscode-remote/containers/dockerfile-context |
| 10 | + "context": "..", |
| 11 | + // Use 'args' to pass build arguments. More info: https://aka.ms/vscode-remote/containers/dockerfile-args |
| 12 | + "args": { |
| 13 | + // "VARIANT": "22-bullseye" |
| 14 | + } |
| 15 | + }, |
| 16 | + "features": { |
| 17 | + "ghcr.io/devcontainers/features/common-utils:2": { |
| 18 | + "installZsh": true, |
| 19 | + "configureZshAsDefaultShell": true, |
| 20 | + "installOhMyZsh": true, |
| 21 | + "installOhMyZshConfig": true, |
| 22 | + "upgradePackages": true, |
| 23 | + "username": "vscode", |
| 24 | + "userUid": "automatic", |
| 25 | + "userGid": "automatic" |
| 26 | + }, |
| 27 | + "ghcr.io/devcontainers/features/docker-in-docker:2": { |
| 28 | + "moby": true, |
| 29 | + "azureDnsAutoDetection": true, |
| 30 | + "installDockerBuildx": true, |
| 31 | + "installDockerComposeSwitch": true, |
| 32 | + "version": "latest", |
| 33 | + "dockerDashComposeVersion": "v2" |
| 34 | + } |
| 35 | + }, |
| 36 | + |
| 37 | + // Features to add to the dev container. More info: https://containers.dev/features. |
| 38 | + // "features": {}, |
| 39 | + |
| 40 | + // Use 'forwardPorts' to make a list of ports inside the container available locally. |
| 41 | + // "forwardPorts": [], |
| 42 | + |
| 43 | + // Use 'postCreateCommand' to run commands after the container is created. |
| 44 | + // "postCreateCommand": "yarn install", |
| 45 | + |
| 46 | + // Configure tool-specific properties. |
| 47 | + "customizations": { |
| 48 | + "vscode": { |
| 49 | + "settings": { |
| 50 | + "terminal.integrated.defaultProfile.linux": "zsh", |
| 51 | + "editor.formatOnSave": true, |
| 52 | + "typescript.tsserver.log": "verbose", |
| 53 | + "typescript.tsserver.trace": "verbose", |
| 54 | + "editor.tabSize": 4, |
| 55 | + "[javascript]": { |
| 56 | + "editor.tabSize": 4 |
| 57 | + }, |
| 58 | + "[typescript]": { |
| 59 | + "editor.tabSize": 4 |
| 60 | + }, |
| 61 | + "[json]": { |
| 62 | + "editor.tabSize": 4 |
| 63 | + }, |
| 64 | + "explorer.sortOrder": "type" |
| 65 | + }, |
| 66 | + "extensions": [ |
| 67 | + "esbenp.prettier-vscode", |
| 68 | + "redhat.vscode-yaml", |
| 69 | + "vscode-icons-team.vscode-icons", |
| 70 | + "firsttris.vscode-jest-runner", |
| 71 | + "mikestead.dotenv", |
| 72 | + "DavidAnson.vscode-markdownlint", |
| 73 | + "dbaeumer.vscode-eslint" |
| 74 | + ] |
| 75 | + } |
| 76 | + } |
| 77 | + |
| 78 | + // Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root. |
| 79 | + // "remoteUser": "root" |
| 80 | +} |
0 commit comments