Dockerfile.develop
FROM escolalms/php:8.2-work
WORKDIR /var/www/html
COPY / /var/www/html
RUN pecl install excimer
RUN cp docker/conf/supervisor/supervisord.conf /etc/supervisor/supervisord.conf \
# supervisord services
# && cp -r docker/conf/supervisor/services/* /etc/supervisor/custom.d \
# devilbox php.ini./ TODO this should be rather send to different custom file
&& cp docker/conf/php/xxx-devilbox-default-php.ini /usr/local/etc/php/conf.d/xxx-devilbox-default-php.ini \
# overwrite some php-fpm settings
&& cp docker/conf/php/php-fpm-custom.conf /usr/local/etc/php-fpm.d/php-fpm-custom.conf
RUN composer self-update && composer install --no-scripts
RUN chown -R devilbox:devilbox /var/www/
CMD /var/www/html/init.sh
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=5 CMD [ "php", "artisan", "health:check" ]