File size: 619 Bytes
ef987bb | 1 2 3 4 5 6 7 8 9 10 11 12 | # syntax=docker/dockerfile:1.7-labs
FROM mcr.microsoft.com/playwright:v1.52.0-noble@sha256:a021500a801bab0611049217ffad6b9697d827205c15babb86a53bc1a61c02d5
WORKDIR /app
COPY ./code /app
# Benchmark fix: the mcr/playwright base ships browsers but NOT the `playwright`
# npm package, so the verifier's require('playwright') threw MODULE_NOT_FOUND.
ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1
RUN npm install -g playwright@1.52.0
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends poppler-utils fonts-noto-cjk && rm -rf /var/lib/apt/lists/*
ENV NODE_PATH=/usr/lib/node_modules
|