diff --git a/docker/Dockerfile b/docker/Dockerfile index 270f784..af963ff 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,12 +13,9 @@ RUN apt-get update > /dev/null && \ unzip filegator_latest.zip && rm filegator_latest.zip && \ chown -R www-data:www-data filegator/ && \ chmod -R 775 filegator/ && \ - # configure Apache - echo '\n\ - \n\ - DocumentRoot /var/www/filegator/dist\n\ - \n\ - ' > /etc/apache2/sites-enabled/000-default.conf && \ + # configure Apache to use the value of APACHE_DOCUMENT_ROOT as its default Document Root + sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf && \ + sed -ri -e 's!/var/www/!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf && \ # configure php mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \ # cleanup apt