FROM mcr.microsoft.com/playwright:v1.61.0-jammy

WORKDIR /tests

COPY package*.json ./
RUN npm ci

COPY . .

RUN mkdir -p results

CMD ["bash", "-lc", "node run-api-checks.js && npx playwright test --reporter=list"]