2021-02-18 15:31:14 +00:00
|
|
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
|
|
|
|
|
// https://github.com/microsoft/vscode-dev-containers/tree/v0.159.0/containers/javascript-node
|
2019-04-16 19:41:33 -07:00
|
|
|
{
|
2020-08-11 13:12:01 -07:00
|
|
|
"name": "Node.js",
|
|
|
|
|
"build": {
|
|
|
|
|
"dockerfile": "Dockerfile",
|
|
|
|
|
// Update 'VARIANT' to pick a Node version: 10, 12, 14
|
2021-02-18 15:31:14 +00:00
|
|
|
"args": { "VARIANT": "14" }
|
2020-08-11 13:12:01 -07:00
|
|
|
},
|
2019-08-26 14:00:50 -07:00
|
|
|
|
2020-08-11 13:12:01 -07:00
|
|
|
// Set *default* container specific settings.json values on container create.
|
|
|
|
|
"settings": {
|
|
|
|
|
"terminal.integrated.shell.linux": "/bin/bash"
|
|
|
|
|
},
|
2019-08-26 14:00:50 -07:00
|
|
|
|
2020-08-11 13:12:01 -07:00
|
|
|
// Add the IDs of extensions you want installed when the container is created.
|
|
|
|
|
"extensions": [
|
|
|
|
|
"dbaeumer.vscode-eslint"
|
|
|
|
|
],
|
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
|
|
|
|
2021-02-18 15:31:14 +00:00
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
2020-08-11 13:12:01 -07:00
|
|
|
"postCreateCommand": "yarn install",
|
2020-04-09 00:42:27 +00:00
|
|
|
|
2021-02-18 15:31:14 +00:00
|
|
|
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
|
2020-08-11 13:12:01 -07:00
|
|
|
"remoteUser": "node"
|
2020-02-27 15:34:04 +01:00
|
|
|
}
|