From f05d518d7f9fd64f91366518576ac31afb0fef8d Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sun, 3 May 2026 17:10:36 +0700 Subject: [PATCH] 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 --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index b6ec7ec..d3d107c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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