From a0745fcaa5cf15092e78b62a5917a124f3e682bf Mon Sep 17 00:00:00 2001 From: SergeantPanda Date: Sun, 28 Sep 2025 11:57:13 -0500 Subject: [PATCH] Switch from yarn to npm for building --- docker/Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 6c7b57fa..702ed7c3 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -9,12 +9,9 @@ FROM node:24 AS frontend-builder WORKDIR /app/frontend COPY ./frontend /app/frontend -RUN corepack enable && corepack prepare yarn@stable --activate - -RUN yarn install || (find /tmp -name build.log -exec cat {} \; && exit 1) - -RUN yarn build - +# Install dependencies and build using npm +RUN npm install || (find /tmp -name build.log -exec cat {} \; && exit 1) +RUN npm run build RUN rm -rf node_modules .cache # --- Redeclare build arguments for the next stage ---