update the docker build for pnpm

This commit is contained in:
jeffvli 2025-05-25 21:15:03 -07:00
parent 9c26187b45
commit a9f7e808cb

View file

@ -4,11 +4,12 @@ WORKDIR /app
# Copy package.json first to cache node_modules # Copy package.json first to cache node_modules
COPY package.json package-lock.json . COPY package.json package-lock.json .
# Scripts include electron-specific dependencies, which we don't need
RUN npm install --legacy-peer-deps --ignore-scripts RUN pnpm install
# Copy code and build with cached modules # Copy code and build with cached modules
COPY . . COPY . .
RUN npm run build:web RUN pnpm run build:web
# --- Production stage # --- Production stage
FROM nginx:alpine-slim FROM nginx:alpine-slim