From 7100047b22c18e67822cfb17af6081daf3c10dc9 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 19 Sep 2022 14:34:25 +0100 Subject: [PATCH] fix(docker): this should be calling corepack each time --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 50f9f735..01f3e87f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,11 @@ WORKDIR /usr/src/app COPY . . COPY .env.build .env -RUN corepack pnpm install -RUN pnpm install --frozen-lockfile -RUN pnpm typecheck -RUN NODE_OPTIONS='--max-old-space-size=4096' pnpm build:all +RUN corepack pnpm install --frozen-lockfile +RUN corepack pnpm typecheck +RUN NODE_OPTIONS='--max-old-space-size=4096' corepack pnpm build:all RUN find . -name "node_modules" -type d -prune -RUN pnpm install --prod +RUN corepack pnpm install --prod FROM node:16-alpine WORKDIR /usr/src/app