From 8ad5797cd8503472f62c2aabca80eb12156a9213 Mon Sep 17 00:00:00 2001 From: Juyeong Maing Date: Sun, 18 Aug 2024 13:30:47 +0000 Subject: [PATCH 1/2] chore: add devcontainer settings --- .devcontainer/Dockerfile | 13 +++++++++++++ .devcontainer/devcontainer.json | 14 ++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .devcontainer/Dockerfile create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile new file mode 100644 index 0000000..a1ef79d --- /dev/null +++ b/.devcontainer/Dockerfile @@ -0,0 +1,13 @@ +FROM node:20-bullseye + +RUN corepack enable + +WORKDIR /workspace + +COPY .yarn /workspace/.yarn +COPY package.json yarn.lock /workspace/ + +# Install dependencies (Yarn Berry) +RUN yarn install + +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"] + } + } +} From cd66ac52dfb187fa31f08f08681fcc522880acbc Mon Sep 17 00:00:00 2001 From: Juyeong Maing Date: Sun, 18 Aug 2024 13:38:44 +0000 Subject: [PATCH 2/2] chore: remove dependencies in devcontainer image --- .devcontainer/Dockerfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index a1ef79d..780fd65 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -7,7 +7,4 @@ WORKDIR /workspace COPY .yarn /workspace/.yarn COPY package.json yarn.lock /workspace/ -# Install dependencies (Yarn Berry) -RUN yarn install - CMD [ "bash" ]