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