Fix Dockerfile (#254)

* add support for docker, resolves #239

* point 000-default.conf Document Root at filegator
This commit is contained in:
Brennen Raimer
2021-08-16 02:20:46 -04:00
committed by GitHub
parent c4a83e3542
commit b0d76f6f54

View File

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