Fix Docker install for Coolify Node Alpine.

Use npm install with the repo npmrc so the lockfile generated on npm 11 installs cleanly during the image build.
This commit is contained in:
2026-08-25 17:46:51 -05:00
parent 4c5c65db98
commit 34e6810c14
+2 -2
View File
@@ -1,7 +1,7 @@
FROM node:22-alpine AS build FROM node:22-alpine AS build
WORKDIR /app WORKDIR /app
COPY package.json package-lock.json* ./ COPY package.json package-lock.json .npmrc ./
RUN npm ci RUN npm install --legacy-peer-deps
COPY . . COPY . .
RUN npm run build RUN npm run build