Dockerfile: use single-stage build (deps does build AND provides artifacts)
The "insufficient_scope: authorization failed" error meant the "builder" stage name didn't exist. Using single stage where deps builds AND provides artifacts via --from=0. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -24,16 +24,16 @@ RUN cd packages/blocks && pnpm install && pnpm build
|
||||
RUN cd packages/admin && pnpm build
|
||||
RUN cd packages/blog-template && pnpm build
|
||||
|
||||
FROM deps AS runner
|
||||
# Final stage - copy everything from deps stage (which now has the built artifacts)
|
||||
FROM deps
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ENV NODE_ENV=production
|
||||
ENV HOST=0.0.0.0
|
||||
|
||||
# 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
|
||||
COPY --from=0 /app/emdash/node_modules ./node_modules
|
||||
COPY --from=0 /app/emdash/packages/blog-template/dist ./dist
|
||||
|
||||
EXPOSE 4321
|
||||
|
||||
|
||||
Reference in New Issue
Block a user