From e5956ae755144d38ac9feefc101a56ccc42b6ad8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pascal=20Prie=C3=9Fnitz?= Date: Thu, 4 Dec 2025 16:55:39 +0100 Subject: [PATCH] [deploy] Ensure package-lock copied for npm ci --- dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dockerfile b/dockerfile index c72b44d..89e1599 100644 --- a/dockerfile +++ b/dockerfile @@ -13,7 +13,9 @@ ENV DATABASE_URL=postgresql://user:pass@localhost:5432/papo?schema=public ENV PRISMA_IGNORE_ENV_LOAD=true # Install dependencies (inkl. dev) -COPY package*.json ./ +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 # Ensure prisma CLI available globally (avoids path issues)