diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 6817cdd..306cfad 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -1,5 +1,10 @@ FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04 +# Install Node.js and npm +RUN apt-get update && apt-get install -y curl && \ + curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - && \ + apt-get install -y nodejs && \ + apt-get clean && rm -rf /var/lib/apt/lists/* # Install claude-code globally -RUN npm i -g @anthropic-ai/claude-code \ No newline at end of file +RUN npm i -g @anthropic-ai/claude-code diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 907d274..26dd934 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -7,14 +7,18 @@ // Use "image": "mcr.microsoft.com/devcontainers/base:ubuntu-24.04", // instead of the build to use a pre-built image. "build": { - "context": ".", - "dockerfile": "Dockerfile" - } - // Features add additional features to your environment. See https://containers.dev/features - // Beware: features are not supported on all platforms and may have unintended side-effects. - // "features": { - // "ghcr.io/devcontainers/features/docker-in-docker": { - // "moby": false - // } - // } -} + "context": ".", + "dockerfile": "Dockerfile" + }, + "features": { + "ghcr.io/devcontainers/features/node:1": { + "nodeGypDependencies": true, + "version": "lts" + }, + "ghcr.io/devcontainers/features/docker-in-docker": { + "version": "latest", + "moby": true + } + }, + "privileged": true +} \ No newline at end of file