Webserver/Dockerfile

28 lines
1007 B
Docker
Raw Permalink Normal View History

2019-11-04 20:29:43 +00:00
FROM debian:buster
MAINTAINER Christopher <christopher@chris-latza.de>
2022-08-28 22:34:06 +00:00
RUN apt-get update && apt-get install -y --fix-missing nano apache2 php php-cli php-curl php-ldap php-mysql php-imap php-xml php-xml php-mbstring php-intl php-apcu php-gd php-sqlite3 php-xmlrpc php-imagick wget curl ffmpeg unzip git php-mongodb php-redis && apt-get autoremove -y && rm -rf /var/lib/apt/lists/*
2022-08-13 17:04:16 +00:00
2020-01-25 10:27:28 +00:00
RUN a2enmod rewrite
2020-06-14 09:45:34 +00:00
RUN a2enmod remoteip
2020-09-09 01:29:07 +00:00
RUN a2enmod expires
2022-08-28 22:30:05 +00:00
RUN a2enmod http2
2019-11-04 20:29:43 +00:00
RUN rm -r -f /var/www/html/*
RUN chown -R www-data:www-data /var/www/html
2020-06-16 09:36:09 +00:00
RUN curl -sS https://getcomposer.org/installer -o composer-setup.php && php composer-setup.php --install-dir=/usr/local/bin --filename=composer
2020-06-14 09:45:09 +00:00
2019-11-04 20:29:43 +00:00
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
2020-01-25 22:33:26 +00:00
COPY 999-main.conf /etc/apache2/conf-enabled/999-main.conf
2020-06-16 10:11:24 +00:00
COPY 99-upload.ini /etc/php/7.3/apache2/conf.d/99-upload.ini
2019-11-04 20:29:43 +00:00
EXPOSE 80
CMD ["/usr/sbin/apache2", "-D", "FOREGROUND"]