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
This commit is contained in:
parent
814d4d2959
commit
cd91992333
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user