| FROM php:8.3-apache@sha256:8838715436f57bfbd8c876700bcb4e21692fbdd6579e2a09a297795cf02f8bcc |
| RUN docker-php-ext-install mysqli |
| RUN docker-php-ext-enable mysqli |
| RUN mkdir -p /var/phpsessions && chown www-data /var/phpsessions |
| VOLUME /var/phpsessions |
| RUN cd /usr/local/etc/php/conf.d/ && \ |
| echo 'display_errors = Off' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'display_startup_errors = Off' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'log_errors = On' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'memory_limit = 128M' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'session.gc_maxlifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'session.cookie_lifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| echo 'session.save_path = /var/phpsessions' >> /usr/local/etc/php/conf.d/docker-php-custom.ini |
| COPY ./ /var/www/html/ |