From 3787ae260fa9c368875b7c98e89cf2d79268caa7 Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 9 Feb 2026 14:28:55 +0300 Subject: [PATCH] fix: update dockerfile with env variable for node linker --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index bf0aee3..ad50ab8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,8 @@ FROM node:20-alpine AS builder WORKDIR /app # Enable Corepack so we can use Yarn v4 RUN corepack enable && corepack prepare yarn@stable --activate +# Force Yarn to use node_modules instead of PnP +ENV YARN_NODE_LINKER=node-modules COPY package.json yarn.lock ./ RUN yarn install --immutable COPY . .