From cd91992333fca02245f2878089fcc40082f15c96 Mon Sep 17 00:00:00 2001 From: "XPS\\Micro" Date: Sat, 31 Jan 2026 18:34:06 +0100 Subject: [PATCH] fix: add fallback to npm install for user-template-next - Use npm ci only if package-lock.json exists - Falls back to npm install if not present - Allows flexible package installation without strict lockfile requirement --- user-template-next/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/user-template-next/Dockerfile b/user-template-next/Dockerfile index 1457198..5dc9fe0 100644 --- a/user-template-next/Dockerfile +++ b/user-template-next/Dockerfile @@ -7,7 +7,8 @@ WORKDIR /app COPY package*.json ./ # Installiere alle Packages (incl. devDependencies fuer TypeScript Build) -RUN npm ci --prefer-offline --no-audit && \ +# Fallback zu npm install wenn package-lock.json nicht existiert +RUN if [ -f package-lock.json ]; then npm ci --prefer-offline --no-audit; else npm install; fi && \ npm cache clean --force # Copy Source Code