salix/images/Dockerfile

21 lines
660 B
Docker

FROM httpd:latest
RUN apt-get update \
&& apt-get install -y curl libcgi-pm-perl \
&& rm -rf /var/lib/apt/lists/*
RUN echo "ServerName localhost\n" \
"Include conf/extra/httpd-vhosts.conf\n" \
"LoadModule rewrite_module modules/mod_rewrite.so\n" \
"LoadModule cgid_module modules/mod_cgid.so\n" \
"LoadModule proxy_module modules/mod_proxy.so\n" \
"LoadModule proxy_http_module modules/mod_proxy_http.so" \
>> "/usr/local/apache2/conf/httpd.conf"
COPY apache2.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
COPY www/ /usr/local/apache2/htdocs/
RUN chmod +x /usr/local/apache2/htdocs/rwmap.pl
CMD ["httpd-foreground"]