diff --git a/Dockerfile b/Dockerfile index 01f3e87f..18a54463 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,9 @@ COPY . . COPY .env.build .env RUN corepack pnpm install --frozen-lockfile +RUN corepack pnpm build:deps RUN corepack pnpm typecheck -RUN NODE_OPTIONS='--max-old-space-size=4096' corepack pnpm build:all +RUN NODE_OPTIONS='--max-old-space-size=4096' corepack pnpm build RUN find . -name "node_modules" -type d -prune RUN corepack pnpm install --prod