From 9df25848dd6c9a2fcec11841d0fd3969c30e7a15 Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sun, 3 May 2026 11:09:24 +0700 Subject: [PATCH] Dockerfile: fix build filter to use 'emdash' package name --- Dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1484a58..d2fde4e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,17 +12,21 @@ FROM deps AS builder WORKDIR /app -# Clone and build patched emdash source +# Clone patched emdash source RUN git clone --depth=1 https://git.moreminimore.com/kunthawat/emdash-patch-imageupload.git emdash-source WORKDIR /app/emdash-source -RUN pnpm install && pnpm build --filter @emdash-cms/core + +# Build only the emdash package (it's named "emdash" not "@emdash-cms/core") +RUN corepack enable && corepack prepare pnpm@9.0.0 --activate +RUN pnpm install +RUN pnpm build --filter emdash # Return to app and copy source WORKDIR /app COPY --from=deps /app/node_modules ./node_modules COPY . . -# Replace emdash with built source using pnpm overrides +# Replace emdash with built source RUN rm -rf node_modules/emdash && cp -r /app/emdash-source/packages/core/dist node_modules/emdash RUN pnpm build && mkdir -p storage/uploads