g1t/services/runner/Dockerfile

22 lines785 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.

Account dropdown, llms.txt onboarding, hosted agent runner (not yet deployed)1# The sandbox a hosted attempt runs in: git, Claude Code, and the g1t runner.
2# Build context: the repository root.
3
4# The same Debian release as the runtime image, so glibc matches.
5FROM rust:1-slim-bookworm AS build
6WORKDIR /src
7COPY Cargo.toml Cargo.lock ./
8COPY crates crates
9COPY services services
10RUN cargo build --release --package g1t-runner
11
12FROM node:22-bookworm-slim
13RUN apt-get update \
14 && apt-get install -y --no-install-recommends git ca-certificates \
15 && rm -rf /var/lib/apt/lists/* \
16 && npm install --global @anthropic-ai/claude-code \
17 && mkdir /work && chown node:node /work
18COPY --from=build /src/target/release/g1t-runner /usr/local/bin/g1t-runner
19# Claude Code refuses to skip permission prompts as root.
20USER node
21ENV HOME=/home/node
22ENTRYPOINT ["g1t-runner"]