patch Dockerfile

This commit is contained in:
Ronald A. Richardson
2023-06-07 19:15:37 +08:00
parent 4e635716bb
commit acf3c66c9f

View File

@@ -34,14 +34,16 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
# Setup application
WORKDIR /var/www/html/api
USER www-data
# Copy application files
COPY --chown=www-data:www-data api ./
RUN chown -R www-data:www-data /var/www/html/api
USER www-data
# Install Composer dependencies
RUN composer install --no-dev --no-scripts --no-autoloader
# Continue
USER root
# Set environment