Renovate bot | ca0409d | 2024-01-20 04:02:45 +0000 | [diff] [blame^] | 1 | FROM php:8.3-apache@sha256:8838715436f57bfbd8c876700bcb4e21692fbdd6579e2a09a297795cf02f8bcc |
Adrià Vilanova Martínez | 6052433 | 2022-11-20 02:33:56 +0100 | [diff] [blame] | 2 | RUN docker-php-ext-install mysqli |
| 3 | RUN docker-php-ext-enable mysqli |
Adrià Vilanova Martínez | 239ce2c | 2022-12-12 00:03:55 +0100 | [diff] [blame] | 4 | RUN mkdir -p /var/phpsessions && chown www-data /var/phpsessions |
| 5 | VOLUME /var/phpsessions |
Adrià Vilanova Martínez | 5ee4ba6 | 2022-12-11 14:45:16 +0100 | [diff] [blame] | 6 | RUN cd /usr/local/etc/php/conf.d/ && \ |
Adrià Vilanova Martínez | 239ce2c | 2022-12-12 00:03:55 +0100 | [diff] [blame] | 7 | echo 'display_errors = Off' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| 8 | echo 'display_startup_errors = Off' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| 9 | echo 'error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| 10 | echo 'log_errors = On' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
Adrià Vilanova Martínez | 5ee4ba6 | 2022-12-11 14:45:16 +0100 | [diff] [blame] | 11 | echo 'memory_limit = 128M' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| 12 | echo 'session.gc_maxlifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
Adrià Vilanova Martínez | 239ce2c | 2022-12-12 00:03:55 +0100 | [diff] [blame] | 13 | echo 'session.cookie_lifetime = 604800' >> /usr/local/etc/php/conf.d/docker-php-custom.ini && \ |
| 14 | echo 'session.save_path = /var/phpsessions' >> /usr/local/etc/php/conf.d/docker-php-custom.ini |
Adrià Vilanova Martínez | 6052433 | 2022-11-20 02:33:56 +0100 | [diff] [blame] | 15 | COPY ./ /var/www/html/ |