Add goal-loop script

This commit is contained in:
Alex Selimov 2026-10-20 10:48:25 -04:00
parent ca9acbdffb
commit 48a2a910e0
2 changed files with 132 additions and 2 deletions

View file

@ -1,4 +1,4 @@
FROM --platform=linux/arm64 debian:bookworm-slim
FROM --platform=linux/amd64 debian:bookworm-slim
ARG PYTHON_VERSION=3.11
ARG NODE_MAJOR=22
@ -59,6 +59,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-pip \
python3-venv \
python3-dev \
fonts-dejavu-core \
&& ln -sf /usr/bin/python3 /usr/bin/python \
&& rm -rf /var/lib/apt/lists/*
@ -152,7 +153,12 @@ WORKDIR /workspace
# symlinked into /root/.pi/agent at runtime by entrypoint.sh.
RUN mkdir -p /root/.pi
# Entrypoint script for runtime auth
# goal-loop: drive a checkbox plan to completion one task at a time via pi.
# Baked onto PATH so it is available in every new dev_sandbox.
COPY goal-loop.sh /usr/local/bin/goal-loop
RUN chmod +x /usr/local/bin/goal-loop
# Entrypoint script for runtime auth and workspace-provided internal CA import
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN chmod +x /usr/local/bin/entrypoint.sh
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]