Skip to content

Commit

Permalink
feat: add devcontainer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
minagishl committed Dec 27, 2024
1 parent 269a224 commit e76388d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
FROM mcr.microsoft.com/devcontainers/typescript-node:20

WORKDIR /workspace

COPY ../package.json ../pnpm-lock.yaml ./

# Install pnpm
RUN corepack enable && corepack prepare pnpm@latest --activate

# Install dependencies
RUN pnpm install --frozen-lockfile

COPY . .
12 changes: 12 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"name": "main",
"build": {
"context": "..",
"dockerfile": "Dockerfile"
},
"customizations": {
"vscode": {
"extensions": ["biomejs.biome", "EditorConfig.EditorConfig"]
}
}
}

0 comments on commit e76388d

Please sign in to comment.