1
0
mirror of synced 2026-07-19 14:55:07 +00:00

fix(docker): assemble driver on the host for docker builds (#1930)

This commit is contained in:
Yury Semikhatsky
2026-06-12 14:09:31 -07:00
committed by GitHub
parent 1b7d164873
commit e3f2f6fa5b
3 changed files with 4 additions and 2 deletions
-1
View File
@@ -44,7 +44,6 @@ RUN mkdir /ms-playwright && \
COPY . /tmp/pw-java
RUN cd /tmp/pw-java && \
./scripts/download_driver.sh && \
mvn install -D skipTests --no-transfer-progress && \
DEBIAN_FRONTEND=noninteractive mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \
-D exec.args="install-deps" -f playwright/pom.xml --no-transfer-progress && \
-1
View File
@@ -44,7 +44,6 @@ RUN mkdir /ms-playwright && \
COPY . /tmp/pw-java
RUN cd /tmp/pw-java && \
./scripts/download_driver.sh && \
mvn install -D skipTests --no-transfer-progress && \
DEBIAN_FRONTEND=noninteractive mvn exec:java -e -D exec.mainClass=com.microsoft.playwright.CLI \
-D exec.args="install-deps" -f playwright/pom.xml --no-transfer-progress && \
+4
View File
@@ -34,4 +34,8 @@ fi
PW_TARGET_ARCH=$(echo $1 | cut -c3-)
# Assemble the driver on the host where npm is available; the Dockerfile picks
# it up via `COPY . /tmp/pw-java`.
../../scripts/download_driver.sh
docker build --platform "${PLATFORM}" --build-arg "PW_TARGET_ARCH=${PW_TARGET_ARCH}" -t "$3" -f "Dockerfile.$2" ../../