fix(docker): build deps before typecheck

This commit is contained in:
Paul Makles 2022-09-19 14:38:08 +01:00
parent 7100047b22
commit d9694ecd24

View file

@ -5,8 +5,9 @@ COPY . .
COPY .env.build .env COPY .env.build .env
RUN corepack pnpm install --frozen-lockfile RUN corepack pnpm install --frozen-lockfile
RUN corepack pnpm build:deps
RUN corepack pnpm typecheck 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 find . -name "node_modules" -type d -prune
RUN corepack pnpm install --prod RUN corepack pnpm install --prod