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:
@@ -31,9 +31,9 @@ WORKDIR /app
|
|||||||
ENV NODE_ENV=production
|
ENV NODE_ENV=production
|
||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
|
|
||||||
# Copy full workspace node_modules (pnpm hoists deps at workspace root)
|
# Copy from builder stage (not deps) - workspace root has all node_modules
|
||||||
COPY --from=deps /app/emdash/node_modules ./node_modules
|
COPY --from=builder /app/emdash/node_modules ./node_modules
|
||||||
COPY --from=deps /app/emdash/packages/blog-template/dist ./dist
|
COPY --from=builder /app/emdash/packages/blog-template/dist ./dist
|
||||||
|
|
||||||
EXPOSE 4321
|
EXPOSE 4321
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user