2024-03-12 10:43:07 +00:00
|
|
|
FROM httpd:latest
|
|
|
|
|
2024-06-18 11:00:10 +00:00
|
|
|
RUN apt-get update \
|
|
|
|
&& apt-get install -y curl libcgi-pm-perl \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
2024-03-12 10:43:07 +00:00
|
|
|
|
2024-06-19 11:55:48 +00:00
|
|
|
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"
|
2024-03-12 10:43:07 +00:00
|
|
|
|
|
|
|
COPY apache2.conf /usr/local/apache2/conf/extra/httpd-vhosts.conf
|
|
|
|
COPY www/ /usr/local/apache2/htdocs/
|
|
|
|
|
2024-06-19 11:55:48 +00:00
|
|
|
RUN chmod +x /usr/local/apache2/htdocs/rwmap.pl
|
2024-03-12 10:43:07 +00:00
|
|
|
|
|
|
|
CMD ["httpd-foreground"]
|