-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdevcontainer-feature.json
More file actions
41 lines (41 loc) · 1.15 KB
/
devcontainer-feature.json
File metadata and controls
41 lines (41 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{
"name": "Node.js",
"id": "node",
"version": "4.0.0",
"description": "Install Node.js from prebuilt binaries.",
"documentationURL": "https://github.com/CargoSense/devcontainer-features/tree/main/src/node",
"licenseURL": "https://github.com/CargoSense/devcontainer-features/blob/main/LICENSE",
"options": {
"version": {
"type": "string",
"default": "latest",
"description": "The Node.js version to install."
}
},
"containerEnv": {
"NPM_CONFIG_CACHE": "/usr/local/npm",
"NODE_HOME": "/usr/local/share/node",
"PATH": "/usr/local/share/node/bin:${PATH}"
},
"dependsOn": {
"ghcr.io/CargoSense/devcontainer-features/apt-packages:1": {
"packages": "libatomic1"
}
},
"installsAfter": [
"ghcr.io/devcontainers/features/common-utils"
],
"mounts": [
{
"source": "npm-cache",
"target": "/usr/local/npm",
"type": "volume"
},
{
"source": "node_modules-cache",
"target": "${containerWorkspaceFolder}/node_modules",
"type": "volume"
}
],
"onCreateCommand": "sudo chown -R ${USER}:${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules"
}