vn-docker/cdn/Dockerfile

21 lines
664 B
Docker
Raw Normal View History

2024-07-02 10:51:13 +00:00
FROM httpd:2.4.60
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 rwmap.pl /usr/local/apache2/htdocs/
RUN chmod +x /usr/local/apache2/htdocs/rwmap.pl
CMD ["httpd-foreground"]