From a9f7e808cb6b016a87ebdadcf87d0acc81ae3cec Mon Sep 17 00:00:00 2001 From: jeffvli Date: Sun, 25 May 2025 21:15:03 -0700 Subject: [PATCH] update the docker build for pnpm --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index fdf2c6ca..7c5aa572 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,13 +2,14 @@ FROM node:18-alpine as builder WORKDIR /app -#Copy package.json first to cache node_modules +# Copy package.json first to cache node_modules COPY package.json package-lock.json . -# Scripts include electron-specific dependencies, which we don't need -RUN npm install --legacy-peer-deps --ignore-scripts -#Copy code and build with cached modules + +RUN pnpm install + +# Copy code and build with cached modules COPY . . -RUN npm run build:web +RUN pnpm run build:web # --- Production stage FROM nginx:alpine-slim