From 5fb9a1a1afc71ff1550a644847e73d65ec5314ae Mon Sep 17 00:00:00 2001 From: Damir Mukimov Date: Sun, 30 Nov 2025 15:37:52 +0100 Subject: [PATCH] Fix Docker build for Yarn v4 - Replace deprecated 'yarn install --immutable --production' with 'yarn workspaces focus --production' - This resolves the YN0050 error in CI Docker builds Yarn v4 deprecated the --production flag on install command. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6a10dbd..8807d00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,7 +36,7 @@ WORKDIR /app COPY .yarnrc.yml package.json yarn.lock ./ # Install production dependencies (uses PnP) -RUN yarn install --immutable --production +RUN yarn workspaces focus --production # Copy PnP files and built application from builder stage COPY --from=builder --chown=nextjs:nodejs /app/.pnp.cjs /app/.pnp.loader.mjs ./