From c65f7facf6f11ada6e66f989c82a8f7d5817f46b Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sun, 3 May 2026 17:07:35 +0700 Subject: [PATCH] Dockerfile: copy node_modules from builder stage instead of deps Builder stage has /app/emdash/node_modules with all workspace deps including react. Deps stage only has blog-template deps. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 197dbbd..b6ec7ec 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,9 +31,9 @@ WORKDIR /app ENV NODE_ENV=production ENV HOST=0.0.0.0 -# Copy full workspace node_modules (pnpm hoists deps at workspace root) -COPY --from=deps /app/emdash/node_modules ./node_modules -COPY --from=deps /app/emdash/packages/blog-template/dist ./dist +# Copy from builder stage (not deps) - workspace root has all node_modules +COPY --from=builder /app/emdash/node_modules ./node_modules +COPY --from=builder /app/emdash/packages/blog-template/dist ./dist EXPOSE 4321