Dockerfile: replace entire emdash package with patched source

This commit is contained in:
Kunthawat Greethong
2026-05-03 11:31:27 +07:00
parent 6210f9c5c5
commit 55fecd15c5

View File

@@ -26,8 +26,9 @@ WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .
# Replace emdash dist contents with patched source (keep package.json)
RUN rm -rf node_modules/emdash/dist && cp -r /app/emdash-source/packages/core/dist/* node_modules/emdash/
# Remove old emdash and replace with patched source entirely
RUN rm -rf node_modules/emdash
RUN cp -r /app/emdash-source/packages/core node_modules/emdash
RUN pnpm build && mkdir -p storage/uploads