FROM docker.io/maven:3-eclipse-temurin-21 RUN mkdir /tmp/playwright-install/ COPY pom.xml /tmp/playwright-install/ # note: the mvn command needs a maven repo to work RUN cd /tmp/playwright-install && mvn exec:java -e \ -D exec.mainClass=com.microsoft.playwright.CLI \ -D exec.args="install --with-deps chromium" \ --batch-mode && rm -rf /tmp/playwright-installer ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1