[deploy] Allow npm install fallback in Docker build
All checks were successful
Deploy Discord Bot / deploy (push) Successful in 2m14s

This commit is contained in:
Pascal Prießnitz
2025-12-04 16:57:39 +01:00
parent e5956ae755
commit 3053dcad6a

View File

@@ -16,7 +16,8 @@ ENV PRISMA_IGNORE_ENV_LOAD=true
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
# fail fast if lockfile missing in build context # fail fast if lockfile missing in build context
RUN test -f package-lock.json RUN test -f package-lock.json
RUN npm ci --include=dev # npm ci fails in some pipelines despite lockfile; fall back to npm install if needed
RUN npm ci --include=dev || npm install --include=dev
# Ensure prisma CLI available globally (avoids path issues) # Ensure prisma CLI available globally (avoids path issues)
RUN npm install -g prisma@5.4.2 RUN npm install -g prisma@5.4.2