Skip to content

Commit 8ad5797

Browse files
committed
chore: add devcontainer settings
1 parent 0f168c0 commit 8ad5797

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.devcontainer/Dockerfile

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:20-bullseye
2+
3+
RUN corepack enable
4+
5+
WORKDIR /workspace
6+
7+
COPY .yarn /workspace/.yarn
8+
COPY package.json yarn.lock /workspace/
9+
10+
# Install dependencies (Yarn Berry)
11+
RUN yarn install
12+
13+
CMD [ "bash" ]

.devcontainer/devcontainer.json

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"name": "Node.js DevContainer",
3+
"dockerFile": "Dockerfile",
4+
"context": "..",
5+
"remoteUser": "root",
6+
"postCreateCommand": "yarn install",
7+
"workspaceFolder": "/workspace",
8+
"mounts": ["source=${localWorkspaceFolder},target=/workspace,type=bind"],
9+
"customizations": {
10+
"vscode": {
11+
"extensions": ["arcanis.vscode-zipfs", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
12+
}
13+
}
14+
}

0 commit comments

Comments
 (0)