Add npm ci when building

This commit is contained in:
philipp lang 2026-10-22 00:34:22 +02:00
parent 12359296fb
commit d05db9f194
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ RUN php artisan telescope:publish
FROM node:20.15.0-slim AS node
WORKDIR /app
COPY . /app
RUN npm install && npm run prod && npm run img && rm -R node_modules
RUN npm ci && npm run prod && npm run img && rm -R node_modules
FROM nginx:1.21.6-alpine AS nginx
WORKDIR /app

View File

@ -6,7 +6,7 @@ RUN composer install --ignore-platform-reqs --no-dev
FROM node:20.15.0-slim AS node
WORKDIR /app
COPY . /app
RUN npm install && npm run prod && npm run img && rm -R node_modules
RUN npm ci && npm run prod && npm run img && rm -R node_modules
FROM zoomyboy/adrema-base:latest AS php
COPY --chown=www-data:www-data . /app