diff --git a/src/Managing.WebApp/Dockerfile-web-ui-dev b/src/Managing.WebApp/Dockerfile-web-ui-dev index 290ae74..309bf6b 100644 --- a/src/Managing.WebApp/Dockerfile-web-ui-dev +++ b/src/Managing.WebApp/Dockerfile-web-ui-dev @@ -21,9 +21,14 @@ COPY ./src/Managing.WebApp/package*.json ./ # Install dependencies #RUN npm ci --production --loglevel=verbose #RUN npm i --omit=dev --loglevel=verbose -RUN rm -f /usr/local/bin/yarn + +# Remove Yarn and Yarnpkg binaries if they exist +RUN rm -f /usr/local/bin/yarn /usr/local/bin/yarnpkg + +# Install Yarn globally RUN npm install -g yarn + #RUN npm i --max-old-space-size=12000 --loglevel=verbose RUN yarn install --ignore-engines --verbose RUN yarn cache clean