Dockerfile: reinstall after copying auth package to resolve its dependencies

The @emdash-cms/auth package needs its node_modules (ulidx, etc.) to be
linked. Running pnpm install after copying it restores the proper links.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
This commit is contained in:
Kunthawat GreethongandClaude Opus 4.6 committed 2026-05-03 12:07:08 +07:00
1 parent b3c4abcf85
commit ddf47aff3a
1 file changed
+2 -1
+2 -1
View File
@@ -30,8 +30,9 @@ COPY . .
# 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
# Copy full auth package (not just dist/) so exports map is preserved
RUN cp -r /app/emdash-source/packages/auth node_modules/@emdash-cms/auth
# Reinstall so auth's node_modules dependencies are linked
RUN pnpm install
RUN pnpm build && mkdir -p storage/uploads