FROM docker.io/library/node:22-bookworm

ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0

RUN apt-get update \
  && apt-get install -y --no-install-recommends \
    bash \
    bubblewrap \
    build-essential \
    ca-certificates \
    curl \
    git \
    jq \
    openssh-client \
    python3 \
    ripgrep \
  && corepack enable \
  && corepack prepare pnpm@latest --activate \
  && corepack prepare yarn@stable --activate \
  && npm install -g bun@1.3.10 opencode-ai@1.17.9 @openai/codex@0.142.0 \
  && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

CMD ["bash"]
