| FROM php:8.3-apache@sha256:a1eeffd475f45e32f6c9d4895c14f2b5418b84cd1ff5aa449655a7c6e71ea94d |
| 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/ |