From 217abedb68849ac2be38cdfcd8b0ff6d9980eff3 Mon Sep 17 00:00:00 2001 From: Edward Nys Date: Tue, 24 Mar 2026 21:35:45 +0100 Subject: [PATCH 1/2] test installing deps --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f479eaf..a6f9ba1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,8 @@ RUN git clone --depth 1 --branch "$NVM_VERSION" https://github.com/nvm-sh/nvm.gi && export NVM_DIR="$HOME/.nvm" && \. "$NVM_DIR/nvm.sh" \ && nvm install 20.20.0 \ && nvm install 22.22.0 \ - && nvm install 24.13.0 - + && nvm install 24.13.0 \ + && npx playwright install --with-deps # for loading profile, to make nvm available for sh ENV ENV='$HOME/.profile' # hadolint ignore=SC1091 From 04fe90261c249e8ffc019d2c9387c381e46ca04f Mon Sep 17 00:00:00 2001 From: Edward Nys Date: Tue, 24 Mar 2026 21:41:48 +0100 Subject: [PATCH 2/2] move to root user --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a6f9ba1..6254e43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,12 +36,18 @@ RUN git clone --depth 1 --branch "$NVM_VERSION" https://github.com/nvm-sh/nvm.gi && export NVM_DIR="$HOME/.nvm" && \. "$NVM_DIR/nvm.sh" \ && nvm install 20.20.0 \ && nvm install 22.22.0 \ - && nvm install 24.13.0 \ - && npx playwright install --with-deps + && nvm install 24.13.0 # for loading profile, to make nvm available for sh ENV ENV='$HOME/.profile' # hadolint ignore=SC1091 RUN export NVM_DIR="$HOME/.nvm" && \. "$NVM_DIR/nvm.sh" + +USER root +# hadolint ignore=SC1091 +RUN export NVM_DIR="/home/jenkins/.nvm" && \. "$NVM_DIR/nvm.sh" \ + && npx playwright install --with-deps + +USER jenkins ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true \ PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable COPY .angular-config.json /home/jenkins/.angular-config.json