2026-03-24 18:53:55 +00:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
|
|
|
bash curl git jq tmux cron python3 openssh-client ca-certificates \
|
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
2026-03-25 12:20:15 +00:00
|
|
|
# tea CLI — official Gitea/Forgejo CLI for issue/label/comment operations
|
2026-03-25 13:34:58 +00:00
|
|
|
# Checksum from https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64.sha256
|
2026-03-25 12:20:15 +00:00
|
|
|
RUN curl -sL https://dl.gitea.com/tea/0.9.2/tea-0.9.2-linux-amd64 -o /usr/local/bin/tea \
|
2026-03-25 13:34:58 +00:00
|
|
|
&& echo "be10cdf9a619e3c0f121df874960ed19b53e62d1c7036cf60313a28b5227d54d /usr/local/bin/tea" | sha256sum -c - \
|
2026-03-25 12:20:15 +00:00
|
|
|
&& chmod +x /usr/local/bin/tea
|
|
|
|
|
|
2026-03-24 22:26:26 +00:00
|
|
|
# Claude CLI is mounted from the host via docker-compose volume.
|
|
|
|
|
# No internet access to cli.anthropic.com required at build time.
|
2026-03-24 18:53:55 +00:00
|
|
|
|
|
|
|
|
# Non-root user
|
|
|
|
|
RUN useradd -m -u 1000 -s /bin/bash agent
|
|
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
RUN chmod +x /entrypoint.sh
|
|
|
|
|
|
2026-03-24 20:30:44 +00:00
|
|
|
# Entrypoint runs as root to start the cron daemon;
|
|
|
|
|
# cron jobs execute as the agent user (crontab -u agent).
|
2026-03-24 18:53:55 +00:00
|
|
|
WORKDIR /home/agent
|
|
|
|
|
|
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|