2024-08-23 02:32:19 +03: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
|
2021-02-17 01:20:15 +03:00
|
|
|
{
|
|
|
|
"name": "Node.js",
|
2024-08-23 02:32:19 +03:00
|
|
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
|
|
|
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm",
|
|
|
|
|
|
|
|
// Features to add to the dev container. More info: https://containers.dev/features.
|
|
|
|
"features": {
|
|
|
|
"ghcr.io/devcontainers/features/go:1": {}
|
|
|
|
},
|
|
|
|
|
|
|
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
|
|
|
// "forwardPorts": [],
|
|
|
|
|
|
|
|
// Use 'postCreateCommand' to run commands after the container is created.
|
|
|
|
"postCreateCommand": {
|
|
|
|
"Configure Build Tools": "sudo corepack enable npm; sudo npm install -g hereby; npm ci",
|
|
|
|
"Install pprof": "go install github.com/google/pprof@latest",
|
|
|
|
"Install Graphviz": "sudo apt install graphviz"
|
2021-02-17 01:20:15 +03:00
|
|
|
},
|
2024-08-23 02:32:19 +03:00
|
|
|
|
|
|
|
// Configure tool-specific properties.
|
2023-08-08 01:44:15 +03:00
|
|
|
"customizations": {
|
|
|
|
"vscode": {
|
|
|
|
"settings": {
|
|
|
|
"terminal.integrated.defaultProfile.linux": "bash",
|
|
|
|
"terminal.integrated.profiles.linux": {
|
|
|
|
"bash": {
|
|
|
|
"path": "/bin/bash",
|
|
|
|
"icon": "terminal-bash"
|
|
|
|
}
|
|
|
|
}
|
2022-01-29 11:42:56 +03:00
|
|
|
},
|
2023-08-08 01:44:15 +03:00
|
|
|
"extensions": [
|
2023-08-31 03:04:28 +03:00
|
|
|
"dbaeumer.vscode-eslint",
|
|
|
|
"dprint.dprint"
|
2023-08-08 01:44:15 +03:00
|
|
|
]
|
|
|
|
}
|
2021-02-17 01:20:15 +03:00
|
|
|
},
|
2024-08-23 02:32:19 +03:00
|
|
|
|
|
|
|
// More info: https://aka.ms/dev-containers-non-root.
|
2021-02-17 01:20:15 +03:00
|
|
|
"remoteUser": "node"
|
2023-08-31 03:04:28 +03:00
|
|
|
}
|