719032b19f
Update Schema / Update configuration json schema (push) Has been cancelled
Memory Benchmark / Memory Test (Full Analysis) (push) Has been cancelled
CI Quality / Lint GitHub Actions (actionlint) (push) Has been cancelled
CI Quality / Lint GitHub Actions (zizmor) (push) Has been cancelled
CI Quality / Check typos (push) Has been cancelled
CI / Test coverage (push) Has been cancelled
CI / Test (22.x, windows-latest) (push) Has been cancelled
CI / Test (24.x, macos-latest) (push) Has been cancelled
CI / Test (24.x, ubuntu-latest) (push) Has been cancelled
CI / Test (24.x, windows-latest) (push) Has been cancelled
CI / Test (26.x, macos-latest) (push) Has been cancelled
CI / Test (26.x, ubuntu-latest) (push) Has been cancelled
CI / Test (26.x, windows-latest) (push) Has been cancelled
CI / Test with Bun (latest, macos-latest) (push) Has been cancelled
CI / Test with Bun (latest, ubuntu-latest) (push) Has been cancelled
CI / Test with Bun (latest, windows-latest) (push) Has been cancelled
CI / Build and run (22.x, macos-latest) (push) Has been cancelled
CI / Build and run (22.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (22.x, windows-latest) (push) Has been cancelled
autofix.ci / autofix (push) Has been cancelled
CI Browser Extension / Lint Browser Extension (push) Has been cancelled
CI Browser Extension / Test Browser Extension (push) Has been cancelled
Memory Benchmark / Memory Test (push) Has been cancelled
CI Website / Lint Website Client (push) Has been cancelled
CI Website / Lint Website Server (push) Has been cancelled
CI Website / Test Website Server (push) Has been cancelled
CI Website / Bundle Website Server (push) Has been cancelled
CI / Lint Biome (push) Has been cancelled
CI / Lint oxlint (push) Has been cancelled
CI / Lint TypeScript (push) Has been cancelled
CI / Lint Secretlint (push) Has been cancelled
CI / Test (22.x, macos-latest) (push) Has been cancelled
CI / Test (22.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (24.x, macos-latest) (push) Has been cancelled
CI / Build and run (24.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (24.x, windows-latest) (push) Has been cancelled
CI / Build and run (26.x, macos-latest) (push) Has been cancelled
CI / Build and run (26.x, ubuntu-latest) (push) Has been cancelled
CI / Build and run (26.x, windows-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, macos-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, ubuntu-latest) (push) Has been cancelled
CI / Build and run with Bun (latest, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript-typescript) (push) Has been cancelled
Docker / build (linux/amd64, ubuntu-latest) (push) Has been cancelled
Docker / build (linux/arm/v7, ubuntu-24.04-arm) (push) Has been cancelled
Docker / build (linux/arm64, ubuntu-24.04-arm) (push) Has been cancelled
Docker / merge (push) Has been cancelled
Pack repository with Repomix / pack-repo (push) Has been cancelled
Performance Benchmark History / Benchmark (macos-latest) (push) Has been cancelled
Performance Benchmark History / Benchmark (ubuntu-latest) (push) Has been cancelled
Performance Benchmark History / Benchmark (windows-latest) (push) Has been cancelled
Performance Benchmark History / Store Results (push) Has been cancelled
Test Repomix Action / Test Node.js 22 (push) Has been cancelled
Test Repomix Action / Test Node.js 24 (push) Has been cancelled
Test Repomix Action / Test Node.js 26 (push) Has been cancelled
109 lines
3.0 KiB
Docker
109 lines
3.0 KiB
Docker
FROM node:24
|
|
|
|
ARG TZ
|
|
ENV TZ="$TZ"
|
|
|
|
# Install basic development tools and iptables/ipset
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
less \
|
|
git \
|
|
procps \
|
|
sudo \
|
|
fzf \
|
|
zsh \
|
|
man-db \
|
|
unzip \
|
|
gnupg2 \
|
|
gh \
|
|
iptables \
|
|
ipset \
|
|
iproute2 \
|
|
dnsutils \
|
|
aggregate \
|
|
jq \
|
|
nano \
|
|
vim \
|
|
fd-find \
|
|
ripgrep \
|
|
hyperfine \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
# Create symlink for fd (Debian/Ubuntu names it fdfind)
|
|
RUN ln -s $(which fdfind) /usr/local/bin/fd
|
|
|
|
# Install ast-grep
|
|
RUN ARCH=$(dpkg --print-architecture) && \
|
|
case "$ARCH" in \
|
|
amd64) AST_ARCH="x86_64-unknown-linux-gnu" ;; \
|
|
arm64) AST_ARCH="aarch64-unknown-linux-gnu" ;; \
|
|
*) echo "Unsupported architecture: $ARCH" && exit 1 ;; \
|
|
esac && \
|
|
wget -q "https://github.com/ast-grep/ast-grep/releases/latest/download/app-${AST_ARCH}.zip" -O /tmp/ast-grep.zip && \
|
|
unzip -q /tmp/ast-grep.zip -d /usr/local/bin && \
|
|
rm /tmp/ast-grep.zip
|
|
|
|
# Ensure default node user has access to /usr/local/share
|
|
RUN chown -R node:node /usr/local/share
|
|
|
|
ARG USERNAME=node
|
|
|
|
# Persist shell history (both bash and zsh)
|
|
RUN mkdir /commandhistory \
|
|
&& touch /commandhistory/.bash_history \
|
|
&& touch /commandhistory/.zsh_history \
|
|
&& chown -R $USERNAME /commandhistory
|
|
|
|
# Set `DEVCONTAINER` environment variable to help with orientation
|
|
ENV DEVCONTAINER=true
|
|
|
|
# Create workspace and config directories and set permissions
|
|
RUN mkdir -p /workspace/repomix /home/node/.claude && \
|
|
chown -R node:node /workspace /home/node/.claude
|
|
|
|
WORKDIR /workspace/repomix
|
|
|
|
ARG GIT_DELTA_VERSION=0.18.2
|
|
RUN ARCH=$(dpkg --print-architecture) && \
|
|
wget "https://github.com/dandavison/delta/releases/download/${GIT_DELTA_VERSION}/git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" && \
|
|
sudo dpkg -i "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb" && \
|
|
rm "git-delta_${GIT_DELTA_VERSION}_${ARCH}.deb"
|
|
|
|
# Set up non-root user
|
|
USER node
|
|
|
|
# Add Claude Code to PATH
|
|
ENV PATH=$PATH:/home/node/.local/bin
|
|
|
|
# Set the default shell to zsh rather than sh
|
|
ENV SHELL=/bin/zsh
|
|
|
|
# Set the default editor and visual
|
|
ENV EDITOR=vim
|
|
ENV VISUAL=vim
|
|
|
|
# Default powerline10k theme
|
|
ARG ZSH_IN_DOCKER_VERSION=1.2.0
|
|
RUN sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v${ZSH_IN_DOCKER_VERSION}/zsh-in-docker.sh)" -- \
|
|
-p git \
|
|
-p fzf \
|
|
-a "source /usr/share/doc/fzf/examples/key-bindings.zsh" \
|
|
-a "source /usr/share/doc/fzf/examples/completion.zsh" \
|
|
-a "export HISTFILE=/commandhistory/.zsh_history" \
|
|
-a "export HISTSIZE=10000" \
|
|
-a "export SAVEHIST=10000" \
|
|
-a "setopt SHARE_HISTORY" \
|
|
-a "setopt HIST_IGNORE_DUPS" \
|
|
-x
|
|
|
|
# Install Claude Code using native installer
|
|
RUN curl -fsSL https://claude.ai/install.sh | bash
|
|
|
|
|
|
# Copy and set up firewall script
|
|
COPY init-firewall.sh /usr/local/bin/
|
|
USER root
|
|
RUN chmod +x /usr/local/bin/init-firewall.sh && \
|
|
echo "node ALL=(root) NOPASSWD: /usr/local/bin/init-firewall.sh" > /etc/sudoers.d/node-firewall && \
|
|
chmod 0440 /etc/sudoers.d/node-firewall
|
|
USER node
|