initial
This commit is contained in:
34
Dockerfile
Normal file
34
Dockerfile
Normal file
@ -0,0 +1,34 @@
|
||||
FROM httpd:2.4
|
||||
|
||||
LABEL Maintainer="Wolfgang Hottgenroth <woho@hottis.de>"
|
||||
LABEL ImageName="registry.hottis.de/dockerized/httpdispatcher"
|
||||
LABEL HubImageName="wollud1969/httpdispatcher"
|
||||
|
||||
RUN \
|
||||
apt update && \
|
||||
apt install -y curl && \
|
||||
sed -i \
|
||||
-e 's,^#\(LoadModule proxy_module modules/mod_proxy.so\),\1,' \
|
||||
-e 's,^#\(LoadModule proxy_http_module modules/mod_proxy_http.so\),\1,' \
|
||||
-e 's,^#\(LoadModule macro_module modules/mod_macro.so\),\1,' \
|
||||
-e 's,^#\(LoadModule rewrite_module modules/mod_rewrite.so\),\1,' \
|
||||
-e 's,^#\(LoadModule authnz_ldap_module modules/mod_authnz_ldap.so\),\1,' \
|
||||
-e 's,^#\(LoadModule ldap_module modules/mod_ldap.so\),\1,' \
|
||||
-e 's,^#\(LoadModule ssl_module modules/mod_ssl.so\),\1,' \
|
||||
-e 's,^#\(LoadModule socache_shmcb_module modules/mod_socache_shmcb.so\),\1,' \
|
||||
-e 's,^#\(Include conf/extra/httpd-vhosts.conf\),Include conf/editable/httpd-vhosts.conf,' \
|
||||
conf/httpd.conf && \
|
||||
mkdir conf/editable && \
|
||||
mkdir conf/editable/ssl && \
|
||||
mkdir conf/editable/ssl/private && \
|
||||
mkdir conf/editable/ssl/certs
|
||||
|
||||
COPY httpd-vhosts.conf conf/editable/
|
||||
|
||||
VOLUME /usr/local/apache2/conf/editable
|
||||
VOLUME /usr/local/apache2/logs
|
||||
|
||||
EXPOSE 443/tcp
|
||||
EXPOSE 80/tcp
|
||||
|
||||
|
Reference in New Issue
Block a user