diff --git a/Dockerfile b/Dockerfile index b1bbe1c..b20cc44 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,6 +79,24 @@ fi exec apachectl -DFOREGROUND EOF +# Replace default vhost so root serves the users UI +RUN bash -lc 'cat >/etc/apache2/sites-available/000-default.conf < + ServerName localhost + DocumentRoot /var/www/html/daloradius/users + + AllowOverride All + Require all granted + + DirectoryIndex index.php + ErrorLog \${APACHE_LOG_DIR}/error.log + CustomLog \${APACHE_LOG_DIR}/access.log combined + +EOF' \ + && apache2ctl -t + + + HEALTHCHECK --interval=30s --timeout=5s --retries=5 CMD curl -fsS http://localhost/ || exit 1 RUN chmod +x /entrypoint.sh