# Base image of the factory's throw-away acceptance containers (used when .factory/setup.json names no image).
# Node 24, Python 3, a C/C++ toolchain, the Chromium that Playwright needs, and the small tools
# that acceptance setups installed again and again (see the runner log "apt installed: ...").
FROM node:24-bookworm
ENV DEBIAN_FRONTEND=noninteractive PIP_BREAK_SYSTEM_PACKAGES=1 PLAYWRIGHT_BROWSERS_PATH=/ms-playwright
RUN apt-get update && apt-get install -y --no-install-recommends \
      build-essential cmake pkg-config git curl wget ca-certificates unzip xz-utils zip \
      e2fsprogs util-linux zsh sudo nano procps iproute2 netcat-openbsd jq sqlite3 \
      python3 python3-pip python3-venv \
    && rm -rf /var/lib/apt/lists/* \
    && npm install -g playwright \
    && playwright install --with-deps chromium \
    && rm -rf /var/lib/apt/lists/* /root/.npm \
    && chmod -R a+rX /ms-playwright
