From 4a21d34891388eb19d4fbbc23546bfe57be47803 Mon Sep 17 00:00:00 2001 From: Paul Makles Date: Mon, 19 Sep 2022 14:40:53 +0100 Subject: [PATCH] fix(docker): try to enable pnpm globally first --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18a54463..9ace579f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,12 +4,13 @@ WORKDIR /usr/src/app 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 +RUN corepack prepare pnpm --activate +RUN pnpm install --frozen-lockfile +RUN pnpm build:deps +RUN pnpm typecheck +RUN NODE_OPTIONS='--max-old-space-size=4096' pnpm build RUN find . -name "node_modules" -type d -prune -RUN corepack pnpm install --prod +RUN pnpm install --prod FROM node:16-alpine WORKDIR /usr/src/app