2023-09-28 11:24:59 -07:00
|
|
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
2023-09-28 11:36:24 -07:00
|
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
2023-09-28 11:24:59 -07:00
|
|
|
{
|
2023-09-28 11:36:24 -07:00
|
|
|
"name": "Node.js",
|
2023-09-28 11:24:59 -07:00
|
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
2023-09-28 12:11:46 -07:00
|
|
|
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye",
|
2023-09-28 11:24:59 -07:00
|
|
|
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
|
|
// "features": {},
|
|
|
|
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2023-09-28 11:36:24 -07:00
|
|
|
// "forwardPorts": [],
|
2023-09-28 11:24:59 -07:00
|
|
|
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2023-09-28 12:15:51 -07:00
|
|
|
//https://github.com/microsoft/vscode-dev-containers/issues/559
|
|
|
|
"postCreateCommand": "source $NVM_DIR/nvm.sh && nvm install 20"
|
2023-09-28 11:24:59 -07:00
|
|
|
|
|
|
|
// Configure tool-specific properties.
|
|
|
|
// "customizations": {},
|
|
|
|
|
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
|
|
// "remoteUser": "root"
|
|
|
|
}
|