-
-
Notifications
You must be signed in to change notification settings - Fork 530
Expand file tree
/
Copy pathdevcontainer.json
More file actions
44 lines (44 loc) · 1.32 KB
/
devcontainer.json
File metadata and controls
44 lines (44 loc) · 1.32 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
42
43
44
{
"name": "Stretchly Dev",
"build": {
"dockerfile": "Dockerfile",
"context": ".."
},
"workspaceFolder": "/workspaces/stretchly",
"remoteUser": "node",
"updateRemoteUserUID": true,
"runArgs": [
"--init",
"--network=host"
],
"mounts": [
"source=stretchly-node-modules,target=/workspaces/stretchly/node_modules,type=volume",
"source=${localEnv:HOME}/.ssh,target=/home/node/.ssh,type=bind,readonly",
"source=${localEnv:HOME}/.gitconfig,target=/home/node/.gitconfig,type=bind,readonly",
"source=${localEnv:HOME}/.npmrc,target=/home/node/.npmrc,type=bind,readonly"
],
"features": {
"ghcr.io/devcontainers/features/git:1": {}
},
"initializeCommand": "touch ~/.gitconfig ~/.npmrc",
"postCreateCommand": "sudo mkdir -p /workspaces/stretchly/node_modules && sudo chown -R node:node /workspaces/stretchly/node_modules && npm install && find node_modules/.bin -maxdepth 1 -type l -exec sh -c 'chmod u+x \"$(readlink -f \"$0\")\"' {} \\;",
"forwardPorts": [
9222
],
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"vitest.explorer"
],
"settings": {
"eslint.validate": [
"javascript"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
}
}
}