FROM registry.i15.nl/i15/fuzephp:8.1-apache MAINTAINER i15 # Write application to image ENV APACHE_DOCUMENT_ROOT /usr/src/admin/www RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf RUN sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf RUN a2enmod rewrite # Amend permissions COPY --chown=www-data . /usr/src/admin RUN chmod -R 777 /usr/src/admin/test/temp