FROM node:22-alpine

# The agent's shell tools. Nothing can be installed during a run (no
# internet), so add whatever your agent needs here.
RUN apk add --no-cache curl jq python3 netcat-openbsd openssl libarchive-tools xxd

# The starter agent's own settings. They live in the image, so the run you
# test locally and the run at the event use the same values; the platform
# does not set them. Change them here and rebuild.
#   HARNESS_FORMAT   request format: chat, anthropic or responses
#   AGENT_MAX_STEPS  model turns before the agent gives up
ENV HARNESS_FORMAT=chat \
    AGENT_MAX_STEPS=14

COPY agent.mjs /app/agent.mjs
ENTRYPOINT ["node", "/app/agent.mjs"]
