@@ -10,7 +10,6 @@ LABEL org.opencontainers.image.licenses="MIT"
1010ARG USERNAME=vscode
1111ARG USER_UID=1000
1212ARG USER_GID=$USER_UID
13- ARG NODE_VERSION=24
1413
1514ENV 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
4135RUN 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
5544RUN 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
5947USER $USERNAME
6048WORKDIR /workspaces
0 commit comments