Dockerfile: build core package directly instead of using workspace filter

This commit is contained in:
Kunthawat Greethong
2026-05-03 11:15:43 +07:00
parent 9df25848dd
commit 7e69efae5b

View File

@@ -16,10 +16,10 @@ WORKDIR /app
RUN git clone --depth=1 https://git.moreminimore.com/kunthawat/emdash-patch-imageupload.git emdash-source
WORKDIR /app/emdash-source
# Build only the emdash package (it's named "emdash" not "@emdash-cms/core")
# Build only the core package directly (not via workspace filter)
RUN corepack enable && corepack prepare pnpm@9.0.0 --activate
RUN pnpm install
RUN pnpm build --filter emdash
RUN cd packages/core && pnpm build
# Return to app and copy source
WORKDIR /app