From 1c9cac0c400ba4a59319748ac7e347f5884441d6 Mon Sep 17 00:00:00 2001 From: Joshua Ogbonna Date: Tue, 31 Dec 2024 08:10:15 +0100 Subject: [PATCH] chore:move install to after pnpm global install --- dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dockerfile b/dockerfile index e973239..f019c86 100644 --- a/dockerfile +++ b/dockerfile @@ -1,9 +1,6 @@ # Install dependencies only when needed FROM node:18-alpine AS deps -# Install build dependencies -RUN pnpm install - # Install global dependencies RUN npm install -g node-gyp node-gyp-build pnpm@8.15.1 @@ -37,6 +34,9 @@ WORKDIR /app RUN npm install -g pnpm@8.15.1 +# Install build dependencies +RUN pnpm install + # Copy all files COPY --from=deps /app/node_modules ./node_modules COPY . .