# Keep this version in sync with @playwright/test in package.json
FROM mcr.microsoft.com/playwright:v1.58.2-noble

RUN apt-get update && apt-get install -y curl netcat-openbsd && rm -rf /var/lib/apt/lists/*

WORKDIR /app/e2e

COPY e2e/package.json e2e/package-lock.json ./
RUN npm ci

COPY e2e/ .

ENTRYPOINT ["/app/e2e/scripts/docker-entrypoint.sh"]
