add Dockerfile

This commit is contained in:
Christopher 2019-11-04 21:29:43 +01:00
parent a3ad655883
commit e329dee78f
1 changed files with 17 additions and 0 deletions

17
Dockerfile Normal file
View File

@ -0,0 +1,17 @@
FROM debian:buster
MAINTAINER Christopher <christopher@chris-latza.de>
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"]