Skip to content

Commit 11ec006

Browse files
committed
fix: clode code installations methode
1 parent e553e82 commit 11ec006

2 files changed

Lines changed: 3 additions & 16 deletions

File tree

.devcontainer/Dockerfile

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ LABEL org.opencontainers.image.licenses="MIT"
1010
ARG USERNAME=vscode
1111
ARG USER_UID=1000
1212
ARG USER_GID=$USER_UID
13-
ARG NODE_VERSION=24
1413

1514
ENV DEBIAN_FRONTEND=noninteractive
1615

@@ -32,29 +31,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3231
tree \
3332
&& rm -rf /var/lib/apt/lists/*
3433

35-
# Installation de Node.js
36-
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
37-
apt-get install -y nodejs && \
38-
rm -rf /var/lib/apt/lists/*
39-
4034
# Création de l'utilisateur non-root
4135
RUN groupadd --gid $USER_GID $USERNAME \
4236
&& useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \
4337
&& echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \
4438
&& chmod 0440 /etc/sudoers.d/$USERNAME
4539

46-
# Configuration npm global pour l'utilisateur
47-
ENV NPM_CONFIG_PREFIX=/home/$USERNAME/.npm-global
48-
ENV PATH=$NPM_CONFIG_PREFIX/bin:$PATH
49-
5040
# Installation de Claude Code
51-
RUN npm install -g @anthropic-ai/claude-code && \
52-
npm cache clean --force
41+
RUN curl -fsSL https://claude.ai/install.sh | bash
5342

5443
# Préparer les répertoires Claude Code
5544
RUN mkdir -p /home/$USERNAME/.claude && \
56-
chown -R $USERNAME:$USERNAME /home/$USERNAME/.claude && \
57-
chown -R $USERNAME:$USERNAME /home/$USERNAME/.npm-global
45+
chown -R $USERNAME:$USERNAME /home/$USERNAME/.claude
5846

5947
USER $USERNAME
6048
WORKDIR /workspaces

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ echo $GITHUB_TOKEN | docker login ghcr.io -u USERNAME --password-stdin
8585

8686
The GitHub Action checks every 24 hours for:
8787

88-
- New Claude Code version on npm
88+
- New Claude Code version
8989
- Changes in the Dockerfile
9090

9191
Rebuild only occurs if changes are detected.
@@ -95,7 +95,6 @@ Rebuild only occurs if changes are detected.
9595

9696
| Package | Description |
9797
| ----------- | ----------------------- |
98-
| Node.js 24 | JavaScript runtime |
9998
| Claude Code | Anthropic CLI |
10099
| git | Version control |
101100
| ripgrep | Fast search |

0 commit comments

Comments
 (0)