From 1d1d407a6fa336b587d656952b2a4cee14f8d61f Mon Sep 17 00:00:00 2001 From: Tania Sanz Date: Mon, 11 May 2026 22:14:46 +0200 Subject: [PATCH] fix: .dockerignore excludes nested build outputs (apps/*/dist, .next, .turbo, etc.) --- .dockerignore | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.dockerignore b/.dockerignore index bdf67f8..04ad9ec 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,13 +1,22 @@ # Dependencies node_modules +**/node_modules .pnp .pnp.js # Build outputs -dist -.next -.turbo -out +# Patterns without a leading `**/` only match the build-context root, NOT +# nested directories. In this monorepo the actual outputs live under +# apps/*/{dist,.next,.turbo} and packages/*/{dist,.turbo}; without `**/` +# any stale local builds (from running `yarn dev` or `yarn build` on the +# host) get copied into the image and override the freshly-built outputs, +# producing silently broken builds (MODULE_NOT_FOUND for whatever the stale +# bundle still references). +**/dist +**/.next +**/.turbo +**/build +**/out # Development .env