Renovate bot | 82b0e41 | 2023-12-30 01:02:44 +0000 | [diff] [blame^] | 1 | FROM php:8.1-apache@sha256:e20df709ac9611fde1447de4b56c169520e275d9fca3da0faf9f109e8d0c5b3f |
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/ |