From b6c24cb04fe4a426b907545ba69500af39cb4ac0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Wed, 13 May 2026 14:07:16 +0100 Subject: [PATCH] Use the env file when buiding playwright common docker (#33483) * Use the env file when buiding playwrigt common docker The docker builds failed due to the variable for being available * Also we surely don't need this twice --- packages/playwright-common/Dockerfile | 3 +-- packages/playwright-common/project.json | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-common/Dockerfile b/packages/playwright-common/Dockerfile index 6480d62602..94294e79e6 100644 --- a/packages/playwright-common/Dockerfile +++ b/packages/playwright-common/Dockerfile @@ -1,7 +1,6 @@ -ARG PLAYWRIGHT_VERSION -FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble # Expose the argument to this build stage ARG PLAYWRIGHT_VERSION +FROM mcr.microsoft.com/playwright:v${PLAYWRIGHT_VERSION}-noble WORKDIR /work diff --git a/packages/playwright-common/project.json b/packages/playwright-common/project.json index bf6ef190c2..bf175aa1fd 100644 --- a/packages/playwright-common/project.json +++ b/packages/playwright-common/project.json @@ -32,6 +32,7 @@ "platforms": ["linux/amd64", "linux/arm64"], "provenance": "true", "sbom": true, + "env-file": ["{projectRoot}/.env.docker:build"], "build-args": ["PLAYWRIGHT_VERSION=$PLAYWRIGHT_VERSION"], "context": "{projectRoot}", "metadata": {