mirror of
https://github.com/filegator/filegator.git
synced 2025-08-05 22:57:32 +02:00
Fix Dockerfile (#254)
* add support for docker, resolves #239 * point 000-default.conf Document Root at filegator
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user