Fix Dockerfiles: use npm install instead of npm ci

npm ci requires package-lock.json which wasn't generated.
Using npm install instead for builds.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
clucraft 2026-01-20 14:02:06 -05:00
parent 56c553aa02
commit 8992087220
2 changed files with 3 additions and 3 deletions

View file

@ -7,7 +7,7 @@ WORKDIR /app
COPY package*.json ./
# Install dependencies
RUN npm ci
RUN npm install
# Copy source code
COPY . .
@ -24,7 +24,7 @@ WORKDIR /app
COPY package*.json ./
# Install production dependencies only
RUN npm ci --only=production
RUN npm install --omit=dev
# Copy built files from builder
COPY --from=builder /app/dist ./dist

View file

@ -7,7 +7,7 @@ WORKDIR /app
COPY package*.json ./
# Install dependencies
RUN npm ci
RUN npm install
# Copy source code
COPY . .