# contained/agent-gemini — Gemini CLI on top of the Contained base image.
# Built automatically on the first start of a sandbox that uses it (and
# rebuilt when this file changes), or by hand:
#   docker build -t contained/agent-gemini:latest build/agents/gemini
FROM contained/agent-base:latest

# Root's install steps must not write into the agent's home (see HOME).
USER root
ENV HOME=/root
# Pinned like the base image; raise it here.
ARG GEMINI_CLI_VERSION=0.61.0
RUN npm install -g @google/gemini-cli@${GEMINI_CLI_VERSION}
ENV HOME=/home/node
USER node
