refactor(Dockerfile): reintroduce service generation command in the build process for consistency and ensure proper asset compilation
This commit is contained in:
@@ -30,7 +30,6 @@ COPY --chown=www-data:www-data composer.json composer.lock ./
|
|||||||
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
|
RUN composer install --no-dev --no-interaction --no-plugins --no-scripts --prefer-dist
|
||||||
|
|
||||||
USER www-data
|
USER www-data
|
||||||
RUN php artisan generate:services
|
|
||||||
|
|
||||||
# =================================================================
|
# =================================================================
|
||||||
# Stage 2: Frontend assets compilation
|
# Stage 2: Frontend assets compilation
|
||||||
@@ -124,6 +123,8 @@ COPY --chown=www-data:www-data openapi.yaml ./openapi.yaml
|
|||||||
|
|
||||||
RUN composer dump-autoload
|
RUN composer dump-autoload
|
||||||
|
|
||||||
|
RUN php artisan generate:services
|
||||||
|
|
||||||
# Configure Nginx and S6 overlay
|
# Configure Nginx and S6 overlay
|
||||||
COPY docker/production/etc/nginx/conf.d/custom.conf /etc/nginx/conf.d/custom.conf
|
COPY docker/production/etc/nginx/conf.d/custom.conf /etc/nginx/conf.d/custom.conf
|
||||||
COPY docker/production/etc/nginx/site-opts.d/http.conf /etc/nginx/site-opts.d/http.conf
|
COPY docker/production/etc/nginx/site-opts.d/http.conf /etc/nginx/site-opts.d/http.conf
|
||||||
|
Reference in New Issue
Block a user