FROM node:20-bookworm-slim@sha256:2cf067cfed83d5ea958367df9f966191a942351a2df77d6f0193e162b5febfc0

ENV PLAYWRIGHT_BROWSERS_PATH=/ms-playwright

RUN apt-get update \
  && apt-get install -y --no-install-recommends \
    ca-certificates \
    curl \
    git \
    jq \
    less \
    python-is-python3 \
    python3 \
    python3-pip \
    python3-venv \
    ripgrep \
    sqlite3 \
    tar \
    unzip \
    wget \
  && rm -rf /var/lib/apt/lists/*

RUN python3 -m pip install --break-system-packages \
  "qrcode[pil]==8.2" \
  "playwright==1.61.0" \
  "pyotp==2.10.0" \
  && python3 -m playwright install --with-deps chromium
