diff --git a/docker/apache2/000-default.conf b/docker/apache2/000-default.conf index 85e1582..6f1d8c7 100644 --- a/docker/apache2/000-default.conf +++ b/docker/apache2/000-default.conf @@ -9,7 +9,7 @@ #ServerName www.example.com ServerAdmin webmaster@localhost - DocumentRoot /app + DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/docker/apache2/default-ssl.conf b/docker/apache2/default-ssl.conf index 14c1b3b..4b9d7f9 100644 --- a/docker/apache2/default-ssl.conf +++ b/docker/apache2/default-ssl.conf @@ -2,7 +2,7 @@ ServerAdmin webmaster@localhost - DocumentRoot /app + DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. diff --git a/docker/apache2/dockerfile b/docker/apache2/dockerfile index 4ca21c2..a7f95e9 100644 --- a/docker/apache2/dockerfile +++ b/docker/apache2/dockerfile @@ -9,7 +9,6 @@ RUN apt-get update && apt-get install -y apache2 openssl ca-certificates \ && a2enmod ssl && a2ensite default-ssl COPY 000-default.conf /etc/apache2/sites-available/000-default.conf COPY default-ssl.conf /etc/apache2/sites-available/default-ssl.conf -WORKDIR /app -COPY --from=build /app/dist . +COPY --from=build /app/dist /var/www/html CMD ["apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file