Skip to content

Commit c107d19

Browse files
committed
upgrade node to v20
1 parent 78fe868 commit c107d19

File tree

4 files changed

+38
-39
lines changed

4 files changed

+38
-39
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Update the VARIANT arg in docker-compose.yml to pick a Node version: 10, 12, 14
2-
ARG VARIANT=16
2+
ARG VARIANT=20
33
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}
44

55
# See https://github.com/microsoft/vscode-dev-containers/tree/master/containers/docker-from-docker for more documentation

.devcontainer/devcontainer.json

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -3,42 +3,41 @@
33
"dockerComposeFile": "docker-compose.yml",
44
"service": "application",
55
"workspaceFolder": "/workspace",
6-
"settings": {
7-
"terminal.integrated.defaultProfile.linux": "bash"
6+
"customizations": {
7+
"vscode": {
8+
"settings": {
9+
"terminal.integrated.defaultProfile.linux": "bash"
10+
},
11+
"remoteEnv": {
12+
"PATH": "${containerEnv:PATH}:/workspace/bin"
13+
},
14+
"extensions": [
15+
"dbaeumer.vscode-eslint",
16+
"esbenp.prettier-vscode",
17+
"mikestead.dotenv",
18+
"ms-azuretools.vscode-docker",
19+
"ms-vsliveshare.vsliveshare",
20+
"wayou.vscode-todo-highlight",
21+
"xshrim.txt-syntax"
22+
]
23+
}
824
},
9-
"remoteEnv": {
10-
"PATH": "${containerEnv:PATH}:/workspace/bin"
11-
},
12-
"extensions": [
13-
"dbaeumer.vscode-eslint",
14-
"esbenp.prettier-vscode",
15-
"mikestead.dotenv",
16-
"ms-azuretools.vscode-docker",
17-
"ms-vsliveshare.vsliveshare",
18-
"wayou.vscode-todo-highlight",
19-
"xshrim.txt-syntax"
20-
],
21-
"forwardPorts": [
22-
3000,
23-
4000,
24-
9000,
25-
9001
26-
],
25+
"forwardPorts": [3000, 4000, 9000, 9001],
2726
"postCreateCommand": "bash -i .devcontainer/init.sh",
28-
"remoteUser": "node",
29-
"portsAttributes": {
30-
"3000":{
31-
"label": "Example Application",
32-
"onAutoForward": "notify"
33-
},
34-
"4000": {
35-
"label": "Imgproxy Server"
36-
},
37-
"9000": {
38-
"label": "Minio Server"
39-
},
40-
"9001": {
41-
"label": "Minio Console"
42-
}
27+
"remoteUser": "node",
28+
"portsAttributes": {
29+
"3000": {
30+
"label": "Example Application",
31+
"onAutoForward": "notify"
32+
},
33+
"4000": {
34+
"label": "Imgproxy Server"
35+
},
36+
"9000": {
37+
"label": "Minio Server"
38+
},
39+
"9001": {
40+
"label": "Minio Console"
41+
}
42+
}
4343
}
44-
}

.devcontainer/docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ services:
1616
context: .
1717
dockerfile: Dockerfile
1818
args:
19-
VARIANT: 14
19+
VARIANT: 20
2020
USER_UID: 1000
2121
USER_GID: 1000
2222
networks:

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18.16.0
1+
v20.9.0

0 commit comments

Comments
 (0)