From 249ca9613f11a73ac97a8c993513e4a8f4da78ce Mon Sep 17 00:00:00 2001 From: Kunthawat Greethong Date: Sun, 3 May 2026 16:57:16 +0700 Subject: [PATCH] Dockerfile: install deps before building packages (react is a workspace dep) Dependencies like react and react-dom come from the workspace root catalog, not from individual packages. Need to install all workspace packages first so the root node_modules is populated. Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd6887e..197dbbd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,12 +12,12 @@ RUN git clone --depth=1 https://git.moreminimore.com/kunthawat/emdash-blog-templ WORKDIR /app/emdash -# Add blog template as workspace package +# Add blog template as workspace package and install all deps RUN cp -r /app/blog-template packages/blog-template - -# Build all packages including the blog template RUN corepack enable && corepack prepare pnpm@9.0.0 --activate RUN pnpm install + +# Build all packages including the blog template RUN cd packages/core && pnpm build RUN cd packages/auth && pnpm build RUN cd packages/blocks && pnpm install && pnpm build