Skip to content

Commit b74aca7

Browse files
committed
Enhancement: Consolidate installation steps for essential packages and Claude Code in Dockerfile
Signed-off-by: Ihor Dvoretskyi <[email protected]>
1 parent 0f0a3e8 commit b74aca7

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.devcontainer/Dockerfile

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM mcr.microsoft.com/devcontainers/base:ubuntu-24.04
22

3-
# Install essential packages
3+
# Install essential packages, Claude Code, and set up directories
44
# hadolint ignore=DL3008
55
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
66
&& apt-get -y install --no-install-recommends \
@@ -13,15 +13,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
1313
npm \
1414
tcl \
1515
&& apt-get clean -y \
16-
&& rm -rf /var/lib/apt/lists/*
17-
18-
# Install Claude Code
19-
RUN npm install -g @anthropic-ai/claude-code
20-
21-
# Set up SSH directory
22-
RUN mkdir -p /run/sshd
23-
24-
# Create the directory structure for the SSH keys
25-
RUN mkdir -p /home/vscode/.ssh && \
26-
chown -R vscode:vscode /home/vscode/.ssh && \
27-
chmod 700 /home/vscode/.ssh
16+
&& rm -rf /var/lib/apt/lists/* \
17+
&& npm install -g @anthropic-ai/claude-code@latest \
18+
&& mkdir -p /run/sshd \
19+
&& mkdir -p /home/vscode/.ssh \
20+
&& chown -R vscode:vscode /home/vscode/.ssh \
21+
&& chmod 700 /home/vscode/.ssh

0 commit comments

Comments
 (0)