From e154868b3b2b03e5b5450b58a7ed7751f5cf9ae0 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 6 Jan 2024 08:58:56 +0100 Subject: [PATCH] Update dockerfile to run with yarn3 closes #1677 --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index db5bfb66..50666c01 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,20 +4,16 @@ RUN mkdir /app WORKDIR /app -# ENV PATH /usr/src/app/node_modules/.bin:$PATH - -COPY package.json /app/package.json -COPY yarn.lock /app/yarn.lock +COPY package.json yarn.lock .yarnrc.yml /app/ +COPY .yarn/releases/ /app/.yarn/releases/ RUN apk add --update --no-cache python3 g++ make\ - && yarn \ + && yarn install\ && apk del python3 g++ make COPY . /app -# The below flag should be removed, it's an incompatibility between -# webpack and node17 -RUN NODE_OPTIONS=--openssl-legacy-provider yarn build +RUN yarn build FROM nginx:1.25.3-alpine COPY --from=ui-builder /app/dist /etc/nginx/html