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 <noreply@anthropic.com>
This commit is contained in:
Kunthawat Greethong
2026-05-03 17:07:35 +07:00
parent 249ca9613f
commit c65f7facf6

View File

@@ -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