Dockerfile 418 B
Newer Older
Florentin Schäfer's avatar
Florentin Schäfer committed
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" \
Florentin Schäfer's avatar
Florentin Schäfer committed
    --batch-mode && rm -rf /tmp/playwright-installer

ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1