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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user