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:
+2
-2
@@ -1,7 +1,7 @@
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json package-lock.json* ./
|
||||
RUN npm ci
|
||||
COPY package.json package-lock.json .npmrc ./
|
||||
RUN npm install --legacy-peer-deps
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user