aboutsummaryrefslogtreecommitdiffstats
path: root/httpserver/Dockerfile
blob: 893b5ba41a27b6d2bf9687e055e3d34a89974d39 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM httpd:2.4

RUN apt-get update && apt-get -y install nano vim libapache2-mod-php php php-curl

RUN a2enmod mpm_prefork
RUN a2dismod mpm_event
RUN a2enmod rewrite
RUN a2enmod ssl

ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid

ADD resources/.htpasswd /usr/local/apache2/passwd/.htpasswd
ADD resources/.htaccess /usr/local/apache2/htdocs/.htaccess
ADD resources/upload.php /usr/local/apache2/conf/upload.php
ADD resources/apache-config.conf /etc/apache2/sites-enabled/000-default.conf
ADD resources/apache2.conf /etc/apache2/apache2.conf
ADD resources/cert/ /etc/apache2/certs/