From e329dee78f13f3c0baef969c5a16c6196bbc96c0 Mon Sep 17 00:00:00 2001 From: Christopher Date: Mon, 4 Nov 2019 21:29:43 +0100 Subject: [PATCH] add Dockerfile --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..b4288b7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:buster + +MAINTAINER Christopher + +RUN apt-get update && apt-get install -y --fix-missing apache2 php php-cli php-ldap php-mysql php-imap php-xml php-mbstring php-intl php-apcu php-gd && apt-get autoremove -y && rm -rf /var/lib/apt/lists/* + +RUN rm -r -f /var/www/html/* +RUN chown -R www-data:www-data /var/www/html +ENV APACHE_RUN_USER www-data +ENV APACHE_RUN_GROUP www-data +ENV APACHE_LOG_DIR /tmp +ENV APACHE_RUN_DIR . +ENV APACHE_PID_FILE /tmp/apache.pid + +EXPOSE 80 + +CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"] \ No newline at end of file