Skip to content

Commit b2a1002

Browse files
fix: DevContainers setup
1 parent aa31780 commit b2a1002

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.devcontainer/Dockerfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
22

3+
# Install Node.js and npm
4+
RUN apt-get update && apt-get install -y curl && \
5+
curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \
6+
apt-get install -y nodejs && \
7+
apt-get clean && rm -rf /var/lib/apt/lists/*
38

49
# Install claude-code globally
5-
RUN npm i -g @anthropic-ai/claude-code
10+
RUN npm i -g @anthropic-ai/claude-code

.devcontainer/devcontainer.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,13 @@
99
"build": {
1010
"context": ".",
1111
"dockerfile": "Dockerfile"
12-
}
12+
},
1313
// Features add additional features to your environment. See https://containers.dev/features
1414
// Beware: features are not supported on all platforms and may have unintended side-effects.
15-
// "features": {
16-
// "ghcr.io/devcontainers/features/docker-in-docker": {
17-
// "moby": false
18-
// }
19-
// }
15+
"features": {
16+
"ghcr.io/devcontainers/features/node:1": {
17+
"nodeGypDependencies": true,
18+
"version": "lts"
19+
}
20+
}
2021
}

0 commit comments

Comments
 (0)