Dockerfile: also copy @emdash-cms/auth package from patched source

Resolves build error: Rollup failed to resolve import
"@emdash-cms/auth/adapters/kysely" from emdash middleware.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Kunthawat Greethong
2026-05-03 11:48:14 +07:00
parent 557ed9e2d0
commit defc69be91

View File

@@ -26,9 +26,10 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Remove old emdash and replace with patched source entirely
RUN rm -rf node_modules/emdash
# Remove old emdash packages and replace with patched source
RUN rm -rf node_modules/emdash node_modules/@emdash-cms/auth
RUN cp -r /app/emdash-source/packages/core node_modules/emdash
RUN cp -r /app/emdash-source/packages/auth node_modules/@emdash-cms/auth
RUN pnpm build && mkdir -p storage/uploads