ARG REHEARSAL_IMAGE=solanafoundation/anchor:v0.32.1
FROM ${REHEARSAL_IMAGE}

WORKDIR /workspace
COPY . .

# The scripts verify the exact Solana, Anchor, Rust, and Node version contract
# before use. No signer or persistent wallet is copied into this image.
RUN chmod +x scripts/*.sh

ENTRYPOINT ["sh", "scripts/ci-rehearsal.sh"]
