devcontainer.json 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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.245.2/containers/typescript-node
  3. {
  4. "name": "Node.js & TypeScript",
  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 on arm64/Apple Silicon.
  10. "args": {
  11. "VARIANT": "16-bullseye"
  12. }
  13. },
  14. // Configure tool-specific properties.
  15. "customizations": {
  16. // Configure properties specific to VS Code.
  17. "vscode": {
  18. // Add the IDs of extensions you want installed when the container is created.
  19. "extensions": [
  20. "dbaeumer.vscode-eslint"
  21. ]
  22. }
  23. },
  24. // Use 'forwardPorts' to make a list of ports inside the container available locally.
  25. // "forwardPorts": [],
  26. // Use 'postCreateCommand' to run commands after the container is created.
  27. // "postCreateCommand": "yarn install",
  28. // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
  29. "remoteUser": "node"
  30. }