diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..780fd65 --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,10 @@ +FROM node:20-bullseye + +RUN corepack enable + +WORKDIR /workspace + +COPY .yarn /workspace/.yarn +COPY package.json yarn.lock /workspace/ + +CMD [ "bash" ] diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..eadb4b3 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,14 @@ +{ + "name": "Node.js DevContainer", + "dockerFile": "Dockerfile", + "context": "..", + "remoteUser": "root", + "postCreateCommand": "yarn install", + "workspaceFolder": "/workspace", + "mounts": ["source=${localWorkspaceFolder},target=/workspace,type=bind"], + "customizations": { + "vscode": { + "extensions": ["arcanis.vscode-zipfs", "esbenp.prettier-vscode", "dbaeumer.vscode-eslint"] + } + } +}