spacehub

surshar / claude-code

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

Built by Anthropic · github.com/anthropics

Merge pull request #3342 from toms74209200/mainBrowse files
Improve devcontainer Dockerfile following best practices
ant-kurt authored on Jul 28, 2025 · GitHub committed on Jul 28, 2025 parents 21df74b + 944eb4e · commit 6f6fc43c73a0
2 changed files+13 -7compared with 21df74b
M.devcontainer/Dockerfile
M.devcontainer/devcontainer.json
@@ -4,7 +4,8 @@
44 ENV TZ="$TZ"
55
66 # Install basic development tools and iptables/ipset
7-RUN apt update && apt install -y less \
7+RUN apt-get update && apt-get install -y --no-install-recommends \
8+ less \
89 git \
910 procps \
1011 sudo \
@@ -21,7 +22,8 @@
2122 aggregate \
2223 jq \
2324 nano \
24- vim
25+ vim \
26+ && apt-get clean && rm -rf /var/lib/apt/lists/*
2527
2628 # Ensure default node user has access to /usr/local/share
2729 RUN mkdir -p /usr/local/share/npm-global && \
@@ -44,10 +46,11 @@
4446
4547 WORKDIR /workspace
4648
49+ARG GIT_DELTA_VERSION=0.18.2
4750 RUN ARCH=$(dpkg --print-architecture) && \
48- wget "https://github.com/dandavison/delta/releases/download/0.18.2/git-delta_0.18.2_${ARCH}.deb" && \
49- sudo dpkg -i "git-delta_0.18.2_${ARCH}.deb" && \
50- rm "git-delta_0.18.2_${ARCH}.deb"
51+ wget "https://github.com/dandavison/delta/releases/download/${GIT_DELTA_VERSION}/git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" && \
52+ sudo dpkg -i "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" && \
53+ rm "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb"
5154
5255 # Set up non-root user
5356 USER node
@@ -64,7 +67,8 @@
6467 ENV VISUAL nano
6568
6669 # Default powerline10k theme
67-RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.2.0/zsh-in-docker.sh)" -- \
70+ARG ZSH_IN_DOCKER_VERSION=1.2.0
71+RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v${ZSH_IN_DOCKER_VERSION}/zsh-in-docker.sh)" -- \
6872 -p git \
6973 -p fzf \
7074 -a "source /usr/share/doc/fzf/examples/key-bindings.zsh" \
@@ -3,7 +3,9 @@
33 "build": {
44 "dockerfile": "Dockerfile",
55 "args": {
6- "TZ": "${localEnv:TZ:America/Los_Angeles}"
6+ "TZ": "${localEnv:TZ:America/Los_Angeles}",
7+ "GIT_DELTA_VERSION": "0.18.2",
8+ "ZSH_IN_DOCKER_VERSION": "1.2.0"
79 }
810 },
911 "runArgs": [