Skip to content

Commit 02fe0ff

Browse files
committed
Enhancement: Update Dockerfile and devcontainer.json to streamline installation of essential packages and Claude Code
Signed-off-by: Ihor Dvoretskyi <[email protected]>
1 parent b74aca7 commit 02fe0ff

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 4 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, Claude Code, and set up directories
3+
# Install essential packages 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 \
@@ -9,12 +9,9 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
99
jq \
1010
build-essential \
1111
openssh-server \
12-
nodejs \
13-
npm \
1412
tcl \
1513
&& apt-get clean -y \
1614
&& rm -rf /var/lib/apt/lists/* \
17-
&& npm install -g @anthropic-ai/claude-code@latest \
1815
&& mkdir -p /run/sshd \
1916
&& mkdir -p /home/vscode/.ssh \
2017
&& chown -R vscode:vscode /home/vscode/.ssh \

.devcontainer/devcontainer.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
"version": "latest",
1616
"ppa": false
1717
},
18+
"ghcr.io/devcontainers/features/node:1": {
19+
"version": "lts",
20+
"nodeGypDependencies": false,
21+
"installYarnUsingApt": false
22+
},
1823
"ghcr.io/devcontainers/features/docker-in-docker:2": {
1924
"version": "latest",
2025
"moby": true,
@@ -52,7 +57,7 @@
5257
}
5358
},
5459
"forwardPorts": [22],
55-
"postCreateCommand": "echo '🚀 Development environment ready! Docker, Kubernetes (Minikube), and SSH are configured.' && sudo service ssh start",
60+
"postCreateCommand": "npm install -g @anthropic-ai/claude-code@latest && echo '🚀 Development environment ready! Docker, Kubernetes (Minikube), Claude Code, and SSH are configured.' && sudo service ssh start",
5661
"postStartCommand": "sudo service ssh restart",
5762
"remoteUser": "vscode"
5863
}

0 commit comments

Comments
 (0)