FROM node:22-bookworm RUN apt-get update && apt-get install -y --no-install-recommends \ python3 python3-pip python3-venv \ curl ca-certificates procps lsof bash \ && rm -rf /var/lib/apt/lists/* RUN python3 -m venv /opt/venv && \ /opt/venv/bin/pip install --no-cache-dir \ pytest==8.4.1 \ pytest-json-ctrf==0.3.5 \ playwright==1.48.0 \ requests==2.32.3 RUN /opt/venv/bin/playwright install --with-deps chromium ENV PATH="/opt/venv/bin:${PATH}" COPY reference.png /app/reference.png COPY app/. /app/ RUN /opt/venv/bin/pip install --no-cache-dir -r /app/backend/requirements.txt RUN cd /app/frontend && npm install --silent COPY pristine/AddExpense.jsx /opt/golden-reference/AddExpense.jsx COPY pristine/App.jsx /opt/golden-reference/App.jsx WORKDIR /app