Use Yarn 2 for Docker builds to avoid network timeout issues.

This commit is contained in:
Dave Page 2023-03-27 10:56:04 +01:00
parent 97bd417ea8
commit 034e96f713

View File

@ -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 \