From 4b366918f5770ffbeabcba8d4c3a85df785e3e73 Mon Sep 17 00:00:00 2001 From: Philipp Melab Date: Tue, 12 Dec 2023 09:36:30 +0000 Subject: [PATCH] fix(SLB-207): use node version from node container Co-authored-by: Leksat --- .lagoon/Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.lagoon/Dockerfile b/.lagoon/Dockerfile index 8c3123e2a..544b89475 100644 --- a/.lagoon/Dockerfile +++ b/.lagoon/Dockerfile @@ -1,8 +1,13 @@ # ==================================================================================================== # BUILDER IMAGE # ==================================================================================================== +FROM uselagoon/node-18-builder as node FROM uselagoon/php-8.2-cli-drupal as builder +COPY --from=node /usr/local/lib/node_modules /usr/local/lib/node_modules +COPY --from=node /usr/local/bin/node /usr/local/bin/node +RUN ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/local/bin/npm + ENV PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD=1 # Install pnpm