From 836aaa632fcb92f42c17100e19df5376b77bafc7 Mon Sep 17 00:00:00 2001 From: copilotcoder Date: Sun, 21 Jun 2026 07:47:31 -0400 Subject: [PATCH] fix(ci): use corepack for yarn berry in frontend build Enable corepack and run yarn via corepack in Dockerfile.frontend install/build steps so packageManager=yarn@4.10.3 works in CI. --- Dockerfile.frontend | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile.frontend b/Dockerfile.frontend index 6e128aa..2571695 100644 --- a/Dockerfile.frontend +++ b/Dockerfile.frontend @@ -9,7 +9,7 @@ COPY frontend/package*.json ./ COPY frontend/yarn.lock* frontend/pnpm-lock.yaml* ./ # Install dependencies -RUN if [ -f yarn.lock ]; then yarn install; \ +RUN if [ -f yarn.lock ]; then corepack enable && corepack yarn install; \ elif [ -f pnpm-lock.yaml ]; then npm install -g pnpm && pnpm install; \ else npm install; fi @@ -23,7 +23,7 @@ CMD ["npm", "run", "dev", "--", "--host", "0.0.0.0"] # Production build stage FROM base AS build -RUN if [ -f yarn.lock ]; then yarn build; \ +RUN if [ -f yarn.lock ]; then corepack yarn build; \ elif [ -f pnpm-lock.yaml ]; then pnpm build; \ else npm run build; fi