Skip to content

Commit 174aef7

Browse files
Fix/devcontainer setup (#201)
* fix: DevContainers setup * fix * fix Co-authored-by: Ona <[email protected]> --------- Co-authored-by: Ona <[email protected]>
1 parent 153efcb commit 174aef7

File tree

2 files changed

+21
-12
lines changed

2 files changed

+21
-12
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: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,18 @@
77
// Use "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04",
88
// instead of the build to use a pre-built image.
99
"build": {
10-
"context": ".",
11-
"dockerfile": "Dockerfile"
12-
}
13-
// Features add additional features to your environment. See https://containers.dev/features
14-
// 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-
// }
20-
}
10+
"context": ".",
11+
"dockerfile": "Dockerfile"
12+
},
13+
"features": {
14+
"ghcr.io/devcontainers/features/node:1": {
15+
"nodeGypDependencies": true,
16+
"version": "lts"
17+
},
18+
"ghcr.io/devcontainers/features/docker-in-docker": {
19+
"version": "latest",
20+
"moby": true
21+
}
22+
},
23+
"privileged": true
24+
}

0 commit comments

Comments
 (0)