Skip to content

Commit d5ad5a8

Browse files
committed
refactor: base-with-bmad extends base image
1 parent dea4b92 commit d5ad5a8

1 file changed

Lines changed: 4 additions & 49 deletions

File tree

Lines changed: 4 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,21 @@
11
# 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
44

55
LABEL org.opencontainers.image.source="https://github.com/Pikatsuto/DevContainer-Claude-Code-Compatible"
66
LABEL org.opencontainers.image.description="Dev Container with Claude Code and BMAD-METHOD pre-installed on Debian 13"
77
LABEL org.opencontainers.image.licenses="MIT"
88

9-
# Arguments pour la configuration
10-
ARG USERNAME=vscode
11-
ARG USER_UID=1000
12-
ARG USER_GID=$USER_UID
139
ARG NODE_VERSION=24
1410

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
4412

4513
# Installation de Node.js (requis pour BMAD-METHOD)
4614
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
4715
apt-get install -y nodejs && \
4816
rm -rf /var/lib/apt/lists/*
4917

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
6419
WORKDIR /workspaces
6520

6621
CMD ["bash"]

0 commit comments

Comments
 (0)