From 14239a0388aae75b7e2b351c01a19beeb4b489ca Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Fri, 16 Feb 2024 10:47:06 +0100 Subject: [PATCH] Docker: Add php.ini override file. TIQR needs allow_url_fopen to be enabled --- docker/Dockerfile.prod | 1 + docker/Dockerfile.test | 1 + docker/conf/zz-docker.ini | 1 + 3 files changed, 3 insertions(+) create mode 100644 docker/conf/zz-docker.ini diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 194b488b..3f2ba85d 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -17,6 +17,7 @@ RUN rm -rf /etc/apache2/sites-enabled/* /var/www/html/var/cache/prod/ && \ chown -R www-data /var/www/html/var COPY ./docker/conf/tiqr-apache2.conf /etc/apache2/sites-enabled/tiqr.conf +COPY ./docker/conf/zz-docker.ini /usr/local/etc/php/conf.d/ EXPOSE 80 CMD ["apache2-foreground"] diff --git a/docker/Dockerfile.test b/docker/Dockerfile.test index 944b78cc..173dd606 100644 --- a/docker/Dockerfile.test +++ b/docker/Dockerfile.test @@ -12,6 +12,7 @@ RUN bin/console assets:install # Add the config files for Apache2 RUN rm -rf /etc/apache2/sites-enabled/* COPY ./docker/conf/tiqr-apache2.conf /etc/apache2/sites-enabled/tiqr.conf +COPY ./docker/conf/zz-docker.ini /usr/local/etc/php/conf.d/ RUN rm -rf /var/www/html/var/cache/prod && \ mkdir -p /var/www/html/var/ && \ chown -R www-data /var/www/html/var diff --git a/docker/conf/zz-docker.ini b/docker/conf/zz-docker.ini new file mode 100644 index 00000000..1574c653 --- /dev/null +++ b/docker/conf/zz-docker.ini @@ -0,0 +1 @@ +allow_url_fopen = On