Skip to content

Commit 5acb4b6

Browse files
Use install command to create and set ownership on folders
1 parent f02684d commit 5acb4b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/devcontainer-feature.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,5 @@
3535
"type": "volume"
3636
}
3737
],
38-
"postCreateCommand": ["su", "-c", "'chown -R ${USER}:${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules'"]
38+
"postCreateCommand": ["su", "-c", "'install -d -o ${USER} -g ${USER} /usr/local/npm ${containerWorkspaceFolder}/node_modules'"]
3939
}

0 commit comments

Comments
 (0)