diff --git a/Dockerfile b/Dockerfile index c644a17..0002495 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,12 @@ -FROM escolalms/php:8.3-bookworm +FROM escolalms/php:8.3-alpine WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html -COPY docker/docker-entrypoint.sh /docker-entrypoint.sh RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \ && cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf -RUN composer install --no-scripts +RUN composer install --no-scripts --no-dev CMD /var/www/html/init.sh diff --git a/Dockerfile.develop b/Dockerfile.develop index 38a7607..9c584ac 100644 --- a/Dockerfile.develop +++ b/Dockerfile.develop @@ -2,10 +2,7 @@ FROM escolalms/php:8.3-alpine WORKDIR /var/www/html EXPOSE 9000 COPY / /var/www/html -COPY docker/docker-entrypoint.sh /docker-entrypoint.sh -RUN docker-php-ext-install opcache -RUN pecl install excimer apcu -RUN docker-php-ext-enable apcu +RUN pecl install excimer RUN \ cp docker/conf/supervisor/supervisord.conf /etc/supervisord.conf \ && cp docker/conf/php/escolalms-custom-php.ini /usr/local/etc/php/conf.d/escolalms-custom-php.ini \