From 3053dcad6a41aeced4e3ea7f8ec87e7e3b6f75c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Prie=C3=9Fnitz?= Date: Thu, 4 Dec 2025 16:57:39 +0100 Subject: [PATCH] [deploy] Allow npm install fallback in Docker build --- dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index 89e1599..7bcf718 100644 --- a/dockerfile +++ b/dockerfile @@ -16,7 +16,8 @@ ENV PRISMA_IGNORE_ENV_LOAD=true COPY package.json package-lock.json ./ # fail fast if lockfile missing in build context 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) RUN npm install -g prisma@5.4.2