From 034e96f713b54633ccd9458bcda0831bd970407d Mon Sep 17 00:00:00 2001 From: Dave Page Date: Mon, 27 Mar 2023 10:56:04 +0100 Subject: [PATCH] Use Yarn 2 for Docker builds to avoid network timeout issues. --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index ca64cfb54..7f9da3915 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,7 @@ RUN apk add --no-cache \ make \ nasm \ nodejs \ + npm \ yarn \ zlib-dev @@ -45,6 +46,7 @@ WORKDIR /pgadmin4/web # Build the JS vendor code in the app-builder, and then remove the vendor source. RUN export CPPFLAGS="-DPNG_ARM_NEON_OPT=0" && \ + yarn set version berry && \ yarn install && \ yarn run bundle && \ rm -rf node_modules \