pr_01m47d15m3e54sn21z27rpy5n9/services/runner/Dockerfile

32 lines1,374 bytesCodeBlame

Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.

Issues and pull requests replace intents and attempts1# The sandbox a g1t agent works in: git, the agent, the g1t runner, and
Show the model behind each choice; toolchains in the sandbox2# the toolchains an agent needs to build and test what it changes.
Account dropdown, llms.txt onboarding, hosted agent runner (not yet deployed)3# Build context: the repository root.
4
5# The same Debian release as the runtime image, so glibc matches.
6FROM rust:1-slim-bookworm AS build
7WORKDIR /src
8COPY Cargo.toml Cargo.lock ./
9COPY crates crates
10COPY services services
11RUN cargo build --release --package g1t-runner
12
13FROM node:22-bookworm-slim
14RUN apt-get update \
Show the model behind each choice; toolchains in the sandbox15 && apt-get install -y --no-install-recommends \
16 git ca-certificates curl build-essential pkg-config libssl-dev \
17 python3 python3-pip python3-venv golang-go ripgrep jq \
Account dropdown, llms.txt onboarding, hosted agent runner (not yet deployed)18 && rm -rf /var/lib/apt/lists/* \
19 && npm install --global @anthropic-ai/claude-code \
20 && mkdir /work && chown node:node /work
21COPY --from=build /src/target/release/g1t-runner /usr/local/bin/g1t-runner
22# Claude Code refuses to skip permission prompts as root.
23USER node
24ENV HOME=/home/node
Show the model behind each choice; toolchains in the sandbox25# Rust, for the agent's own use, installed for the user it runs as.
26RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
27 | sh -s -- -y --profile minimal --default-toolchain stable
28ENV PATH=/home/node/.cargo/bin:$PATH
Issues and pull requests replace intents and attempts29# Commits are the g1t agent's; the harness does not sign them as its own.
30RUN mkdir -p /home/node/.claude \
31 && echo '{"includeCoAuthoredBy": false}' > /home/node/.claude/settings.json
Account dropdown, llms.txt onboarding, hosted agent runner (not yet deployed)32ENTRYPOINT ["g1t-runner"]