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 . .