Skip to content

Commit 5322427

Browse files
authored
Add devcontainer (#903)
Signed-off-by: yubiuser <[email protected]>
1 parent 4e6d84a commit 5322427

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
FROM node:23-alpine3.19
2+
RUN apk add --no-cache \
3+
git \
4+
nano\
5+
openssh
6+
7+
USER node

.devcontainer/devcontainer.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"name": "chartjs-plugin-zoom devcontainer",
3+
"dockerFile": "Dockerfile",
4+
// Use 'postCreateCommand' to run commands after the container is created.
5+
"postCreateCommand": "npm install",
6+
"customizations": {
7+
// Configure properties specific to VS Code.
8+
"vscode": {
9+
"settings": {},
10+
"extensions": [
11+
"eamodio.gitlens",
12+
"EditorConfig.EditorConfig"
13+
]
14+
}
15+
},
16+
"containerEnv": {
17+
"GIT_EDITOR": "nano"
18+
},
19+
"mounts": [
20+
"type=bind,source=/home/${localEnv:USER}/.ssh,target=/home/node/.ssh,readonly"
21+
]
22+
}

0 commit comments

Comments
 (0)