console now builds for production

This commit is contained in:
Ronald A. Richardson
2023-06-06 14:21:10 +07:00
parent 3d1140d45c
commit f3240c049f
6 changed files with 10 additions and 7 deletions

Submodule console updated: bf512c392f...75b37dcf62

View File

@@ -38,14 +38,17 @@ WORKDIR /var/www/html/api
# Set ownership and permissions
RUN chown www-data:www-data /var/www/html \
&& chown www-data:www-data /var/www/html/api
&& chown www-data:www-data /var/www/html/api \
&& chown -R www-data:www-data /var/www/html/api/storage \
&& chown -R www-data:www-data /var/www/html/api/bootstrap
USER www-data
RUN mkdir -p ./storage/logs/ \
&& ln -sf /dev/stdout ./storage/logs/laravel.log
# Install Composer dependencies
COPY api/composer.json api/composer.lock ./
RUN composer install --no-dev --no-scripts --no-autoloader
RUN composer install
# Copy application files
COPY --chown=www-data:nogroup . ./