| ARG RELEASE |
| ARG LAUNCHPAD_BUILD_ARCH |
| LABEL org.opencontainers.image.version=24.04 |
| ADD file:0f6466425c4f1800aae9224ddc3437b90c829cea58fb8edd5dde2f1eb0ee28da in / |
| CMD ["/bin/bash"] |
| ENV DEBIAN_FRONTEND=noninteractive LANG=C.UTF-8 LC_ALL=C.UTF-8 TERM=xterm-256color HOME=/home/cc |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl wget gnupg lsb-release git openssh-client tmux less vim nano jq ripgrep build-essential python3 python3-pip python3-venv ttyd tini && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y --no-install-recommends nodejs && rm -rf /var/lib/apt/lists/* # buildkit |
| RUN /bin/sh -c curl -fsSLo /usr/local/bin/kubectl "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl" && chmod +x /usr/local/bin/kubectl # buildkit |
| RUN /bin/sh -c pip3 install --no-cache-dir --break-system-packages ansible # buildkit |
| RUN /bin/sh -c npm install -g @anthropic-ai/claude-code # buildkit |
| RUN /bin/sh -c userdel -r ubuntu 2>/dev/null || true && useradd -m -u 1000 -s /bin/bash cc && mkdir -p /home/cc/.ssh /home/cc/workspace && chown -R cc:cc /home/cc # buildkit |
| RUN /bin/sh -c printf 'set -g mouse on\nset -g history-limit 50000\nset -g default-terminal "screen-256color"\nset -g status-right "#[fg=cyan]#H"\n' > /home/cc/.tmux.conf && chown cc:cc /home/cc/.tmux.conf # buildkit |
| RUN /bin/sh -c printf '\n# cc aliases\nalias cc="claude"\nalias k="kubectl"\nexport KUBECONFIG=$HOME/.kube/config\n' >> /home/cc/.bashrc # buildkit |
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh # buildkit |
| RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint.sh # buildkit |
| USER cc |
| WORKDIR /home/cc |
| EXPOSE [7681/tcp] |
| ENTRYPOINT ["/usr/bin/tini" "--" "/usr/local/bin/entrypoint.sh"] |