From d9694ecd24a343f5522710b61d919a0b37269922 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 19 Sep 2022 14:38:08 +0100 Subject: [PATCH] fix(docker): build deps before typecheck --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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