Renovate bot | e4acb2a | 2023-12-30 01:02:50 +0000 | [diff] [blame^] | 1 | FROM php:8.3-apache@sha256:a1eeffd475f45e32f6c9d4895c14f2b5418b84cd1ff5aa449655a7c6e71ea94d |
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/ |