From 1a145d12f0eba261444ba968c91fb5cc86c4d51e Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 3 Apr 2025 23:34:01 +0200 Subject: [PATCH] Compile adrema-form scripts in docker build --- .docker/nginx.Dockerfile | 3 ++- .docker/php.Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.docker/nginx.Dockerfile b/.docker/nginx.Dockerfile index 722c715d..323eb6e9 100644 --- a/.docker/nginx.Dockerfile +++ b/.docker/nginx.Dockerfile @@ -8,7 +8,8 @@ RUN php artisan horizon: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 +RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules FROM nginx:1.21.6-alpine as nginx WORKDIR /app diff --git a/.docker/php.Dockerfile b/.docker/php.Dockerfile index 894da150..7b67b9c3 100644 --- a/.docker/php.Dockerfile +++ b/.docker/php.Dockerfile @@ -6,7 +6,8 @@ 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 +RUN cd packages/adrema-form && npm ci && npm run build && rm -R node_modules FROM zoomyboy/adrema-base:latest as php COPY --chown=www-data:www-data . /app