2022-11-16 11:23:50 -06:00
|
|
|
|
|
|
|
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
|
|
|
|
// README at: https://github.com/devcontainers/templates/tree/main/src/javascript-node
|
2019-04-16 19:41:33 -07:00
|
|
|
{
|
2020-08-11 13:12:01 -07:00
|
|
|
"name": "Node.js",
|
2022-12-23 08:33:42 -06:00
|
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
|
|
|
"image": "mcr.microsoft.com/devcontainers/javascript-node:0-18-bullseye",
|
2022-11-16 11:23:50 -06:00
|
|
|
|
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
|
|
|
// "features": {},
|
2019-08-26 14:00:50 -07:00
|
|
|
|
2022-05-17 12:41:33 -07:00
|
|
|
// Configure tool-specific properties.
|
|
|
|
|
"customizations": {
|
|
|
|
|
// Configure properties specific to VS Code.
|
|
|
|
|
"vscode": {
|
2022-12-23 08:33:42 -06:00
|
|
|
"settings": {},
|
2022-05-17 12:41:33 -07:00
|
|
|
"extensions": [
|
2022-12-23 08:33:42 -06:00
|
|
|
"streetsidesoftware.code-spell-checker"
|
2022-05-17 12:41:33 -07:00
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
},
|
2021-02-18 15:31:14 +00:00
|
|
|
|
2020-04-09 00:42:27 +00:00
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
2020-11-02 13:52:59 +00:00
|
|
|
// "forwardPorts": [3000],
|
2020-04-09 00:42:27 +00:00
|
|
|
|
2022-12-23 08:33:42 -06:00
|
|
|
// Use 'portsAttributes' to set default properties for specific forwarded ports.
|
|
|
|
|
// More info: https://containers.dev/implementors/json_reference/#port-attributes
|
2021-03-16 15:59:13 +00:00
|
|
|
"portsAttributes": {
|
2023-07-19 17:06:04 -04:00
|
|
|
"3000": {
|
2021-04-19 12:21:28 -07:00
|
|
|
"label": "Hello Remote World",
|
|
|
|
|
"onAutoForward": "notify"
|
2021-03-16 15:59:13 +00:00
|
|
|
}
|
|
|
|
|
},
|
2021-04-14 17:05:05 +00:00
|
|
|
|
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2022-11-16 11:23:50 -06:00
|
|
|
"postCreateCommand": "yarn install"
|
2021-04-14 17:05:05 +00:00
|
|
|
|
2022-11-16 11:23:50 -06:00
|
|
|
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
|
|
|
|
|
// "remoteUser": "root"
|
2020-02-27 15:34:04 +01:00
|
|
|
}
|