From 829a105641642cfb511e7f1660658f20f963d8a9 Mon Sep 17 00:00:00 2001 From: clauspeterhuebner Date: Wed, 20 Nov 2024 23:06:48 +0100 Subject: [PATCH] upgrade yarn and node versions for admin build --- admin/Dockerfile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/admin/Dockerfile b/admin/Dockerfile index 387083347..803743233 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -42,6 +42,14 @@ EXPOSE ${PORT} RUN mkdir -p ${DOCKER_WORKDIR} WORKDIR ${DOCKER_WORKDIR} +# upgrade yarn and node versions +nvm use v20.0.0 +yarn set version stable +yarn cache clear +yarn install +yarn build + + ################################################################################## # DEVELOPMENT (Connected to the local environment, to reload on demand) ########## ################################################################################## @@ -63,8 +71,7 @@ FROM base as build # Copy everything COPY . . # yarn install -# RUN yarn install --production=false --frozen-lockfile --non-interactive -RUN yarn install --frozen-lockfile --non-interactive +RUN yarn install --production=false --frozen-lockfile --non-interactive # yarn build RUN yarn run build