File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,15 @@ RUN curl -fsSL https://claude.ai/install.sh | bash && \
18
18
echo 'export PATH="$HOME/.local/bin:$HOME/bin:$PATH"' >> /root/.bashrc && \
19
19
echo 'export PATH="$HOME/.local/bin:$HOME/bin:$PATH"' >> /root/.zshrc
20
20
21
+ # Install Docker CLI using official Docker repository
22
+ RUN install -m 0755 -d /etc/apt/keyrings && \
23
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
24
+ chmod a+r /etc/apt/keyrings/docker.asc && \
25
+ echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo " $VERSION_CODENAME") stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
26
+ apt-get update && \
27
+ apt-get install -y docker-ce-cli && \
28
+ rm -rf /var/lib/apt/lists/*
29
+
21
30
# Install AWS CLI
22
31
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
23
32
&& unzip awscliv2.zip \
@@ -66,7 +75,10 @@ RUN mkdir -p /root/.shell_history && \
66
75
# Configure existing ubuntu user for Claude Code compatibility (use existing UID 1000)
67
76
RUN usermod --shell /bin/zsh ubuntu && \
68
77
# Give ubuntu sudo access
69
- echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
78
+ echo 'ubuntu ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \
79
+ # Add ubuntu user to docker group for Docker socket access
80
+ groupadd -f docker && \
81
+ usermod -aG docker ubuntu
70
82
71
83
# Switch to ubuntu user and set up user-specific configurations
72
84
USER ubuntu
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ services:
12
12
- github-cli-auth:/home/ubuntu/.config/gh
13
13
- ${PWD}/.claude:/home/ubuntu/.claude:cached
14
14
- ${HOME}/.claude.json:/home/ubuntu/.claude.json:cached
15
+ - /var/run/docker.sock:/var/run/docker.sock
15
16
working_dir : /workspace
16
17
command : sleep infinity
17
18
depends_on :
You can’t perform that action at this time.
0 commit comments