From daa7eb1a0dbe7d453ae3363bb66e667bb1ebdde5 Mon Sep 17 00:00:00 2001 From: nmemmert <67961292+nmemmert@users.noreply.github.com> Date: Tue, 21 Jul 2026 09:04:39 -0400 Subject: [PATCH] Fix Docker build: upgrade to node:22-alpine, install only server deps The production stage was running npm ci --omit=dev against a macOS- generated lockfile on linux/alpine, which caused exit code 1. Switch to installing only the three packages the server actually needs (express, cors, docx) so the lockfile is irrelevant in that stage. Also upgrades to node:22-alpine (current LTS) to clear the Node 20 deprecation warning on GitHub Actions. Co-Authored-By: Claude Sonnet 4.6 --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 17a0597..0d45b41 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,13 @@ -FROM node:20-alpine AS build +FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm ci COPY . . RUN npm run build -FROM node:20-alpine +FROM node:22-alpine WORKDIR /app -COPY package*.json ./ -RUN npm ci --omit=dev +RUN npm install express cors docx COPY server.js ./ COPY --from=build /app/build ./build