FROM archlinux:latest ARG USERNAME=dev ARG UID=1000 ARG GID=1000 RUN pacman -Syu --noconfirm \ base-devel \ git \ ca-certificates \ bash \ less \ ripgrep \ nodejs \ npm \ curl \ sudo && \ groupadd -g ${GID} ${USERNAME} && \ useradd -m -u ${UID} -g ${GID} -s /bin/bash ${USERNAME} && \ echo "${USERNAME} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \ pacman -Scc --noconfirm # Install Claude Code using the native installer, then copy the binary # to a system-wide location so it survives the home directory bind mount USER ${USERNAME} WORKDIR /tmp RUN curl -fsSL https://claude.ai/install.sh | bash && \ sudo cp ~/.local/bin/claude /usr/local/bin/claude && \ rm -rf ~/.local/share/claude ~/.local/bin/claude ~/.claude ~/.claude.json \ ~/.cache/claude USER ${USERNAME} WORKDIR /home/${USERNAME}