|
1 | 1 | # Dev Container compatible avec Claude Code + BMAD-METHOD |
2 | | -# Base: Debian 13 (Trixie) |
3 | | -FROM debian:trixie-slim |
| 2 | +# Basé sur l'image base |
| 3 | +FROM ghcr.io/pikatsuto/devcontainer-claude-code:latest |
4 | 4 |
|
5 | 5 | LABEL org.opencontainers.image.source="https://github.com/Pikatsuto/DevContainer-Claude-Code-Compatible" |
6 | 6 | LABEL org.opencontainers.image.description="Dev Container with Claude Code and BMAD-METHOD pre-installed on Debian 13" |
7 | 7 | LABEL org.opencontainers.image.licenses="MIT" |
8 | 8 |
|
9 | | -# Arguments pour la configuration |
10 | | -ARG USERNAME=vscode |
11 | | -ARG USER_UID=1000 |
12 | | -ARG USER_GID=$USER_UID |
13 | 9 | ARG NODE_VERSION=24 |
14 | 10 |
|
15 | | -ENV DEBIAN_FRONTEND=noninteractive |
16 | | -ENV PATH="/home/vscode/.local/bin:$PATH" |
17 | | - |
18 | | -# Installation: Claude Code + outils d'analyse et debug |
19 | | -RUN apt-get update && apt-get install -y --no-install-recommends \ |
20 | | - # Requis pour Claude Code |
21 | | - ca-certificates \ |
22 | | - curl \ |
23 | | - git \ |
24 | | - sudo \ |
25 | | - openssh-client \ |
26 | | - # Outils d'analyse et debug |
27 | | - ripgrep \ |
28 | | - fd-find \ |
29 | | - jq \ |
30 | | - less \ |
31 | | - procps \ |
32 | | - lsof \ |
33 | | - file \ |
34 | | - tree \ |
35 | | - && rm -rf /var/lib/apt/lists/* |
36 | | - |
37 | | -# Installation de GitHub CLI |
38 | | -RUN curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \ |
39 | | - && chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \ |
40 | | - && echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \ |
41 | | - && apt-get update \ |
42 | | - && apt-get install -y gh \ |
43 | | - && rm -rf /var/lib/apt/lists/* |
| 11 | +USER root |
44 | 12 |
|
45 | 13 | # Installation de Node.js (requis pour BMAD-METHOD) |
46 | 14 | RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \ |
47 | 15 | apt-get install -y nodejs && \ |
48 | 16 | rm -rf /var/lib/apt/lists/* |
49 | 17 |
|
50 | | -# Création de l'utilisateur non-root |
51 | | -RUN groupadd --gid $USER_GID $USERNAME \ |
52 | | - && useradd --uid $USER_UID --gid $USER_GID -m $USERNAME \ |
53 | | - && echo $USERNAME ALL=\(root\) NOPASSWD:ALL > /etc/sudoers.d/$USERNAME \ |
54 | | - && chmod 0440 /etc/sudoers.d/$USERNAME |
55 | | - |
56 | | -# Installation de Claude Code |
57 | | -RUN curl -fsSL https://claude.ai/install.sh | bash |
58 | | - |
59 | | -# Préparer les répertoires Claude Code |
60 | | -RUN mkdir -p /home/$USERNAME/.claude && \ |
61 | | - chown -R $USERNAME:$USERNAME /home/$USERNAME/.claude |
62 | | - |
63 | | -USER $USERNAME |
| 18 | +USER vscode |
64 | 19 | WORKDIR /workspaces |
65 | 20 |
|
66 | 21 | CMD ["bash"] |
0 commit comments