From 2ee2ba6b8c4b3f6039dc02781804454f8236a090 Mon Sep 17 00:00:00 2001 From: Kelly Date: Wed, 10 Dec 2025 11:28:29 -0700 Subject: [PATCH] fix(docker): Use npm install instead of npm ci for reliability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm ci can fail when package-lock.json has minor mismatches with package.json. npm install is more forgiving and appropriate for Docker builds where determinism is less critical than reliability. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/Dockerfile | 4 ++-- cannaiq/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index c0a8ad48..cab76207 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -5,7 +5,7 @@ FROM code.cannabrands.app/creationshop/node:20-slim AS builder WORKDIR /app COPY package*.json ./ -RUN npm ci +RUN npm install COPY . . RUN npm run build @@ -43,7 +43,7 @@ ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium WORKDIR /app COPY package*.json ./ -RUN npm ci --omit=dev +RUN npm install --omit=dev COPY --from=builder /app/dist ./dist diff --git a/cannaiq/Dockerfile b/cannaiq/Dockerfile index 3f2608b3..eecc8184 100644 --- a/cannaiq/Dockerfile +++ b/cannaiq/Dockerfile @@ -6,8 +6,8 @@ WORKDIR /app # Copy package files COPY package*.json ./ -# Install dependencies -RUN npm ci +# Install dependencies (npm install is more forgiving than npm ci) +RUN npm install # Copy source files COPY . .