FROM icr-destructive-actions-base:1
RUN apk add --no-cache nodejs npm ripgrep libgcc libstdc++ ca-certificates
RUN npm install -g --no-fund --no-audit @openai/codex@0.164.0 @anthropic-ai/claude-code@2.1.310 && npm cache clean --force
# Codex bundles a glibc ripgrep that cannot load on Alpine (musl); point it at the system ripgrep.
RUN for f in $(find /usr/local/lib/node_modules/@openai -path '*codex-path/rg'); do ln -sf /usr/bin/rg "$f"; done
