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