From 7438375aa817c360e59f4697575e1e9fb2d1e4b9 Mon Sep 17 00:00:00 2001 From: Martijn de Boer Date: Mon, 12 Aug 2024 17:16:48 +0200 Subject: [PATCH] Add apache/Dockerfile --- apache/Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 apache/Dockerfile diff --git a/apache/Dockerfile b/apache/Dockerfile new file mode 100644 index 0000000..96744f5 --- /dev/null +++ b/apache/Dockerfile @@ -0,0 +1,16 @@ +FROM ubuntu:20.04 + +RUN apt-get update && apt-get install -y apache2 ssl-cert + +RUN a2enmod ssl proxy proxy_fcgi rewrite + +COPY apache2.conf /etc/apache2/apache2.conf +COPY php-fpm.conf /etc/apache2/conf-available/php-fpm.conf + +RUN a2enconf php-fpm + +RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf + +EXPOSE 80 443 + +CMD ["apache2ctl", "-D", "FOREGROUND"] \ No newline at end of file