From da253163d5352f5487d68d0ae30a1667482de1cb Mon Sep 17 00:00:00 2001 From: Jamie Nguyen Date: Tue, 17 Jul 2018 14:11:52 +0100 Subject: Switch to copying whole directory of config files --- 2.4/Dockerfile | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to '2.4/Dockerfile') diff --git a/2.4/Dockerfile b/2.4/Dockerfile index 151bd38..58e3ea7 100644 --- a/2.4/Dockerfile +++ b/2.4/Dockerfile @@ -4,17 +4,8 @@ MAINTAINER Bytemark Hosting "support@bytemark.co.uk" # This variable is inherited from httpd:alpine image: # ENV HTTPD_PREFIX /usr/local/apache2 -RUN set -ex; \ - # Create Debian-style subdirectories. - mkdir -p "$HTTPD_PREFIX/conf/conf-available"; \ - mkdir -p "$HTTPD_PREFIX/conf/conf-enabled"; \ - mkdir -p "$HTTPD_PREFIX/conf/sites-available"; \ - mkdir -p "$HTTPD_PREFIX/conf/sites-enabled" - # Copy in our configuration files. -COPY dav.conf "$HTTPD_PREFIX/conf/conf-available" -COPY default.conf "$HTTPD_PREFIX/conf/sites-available" -COPY default-ssl.conf "$HTTPD_PREFIX/conf/sites-available" +COPY conf/ "$HTTPD_PREFIX/conf/" RUN set -ex; \ # Create empty default DocumentRoot. @@ -51,6 +42,8 @@ RUN set -ex; \ >> "$HTTPD_PREFIX/conf/httpd.conf"; \ \ # Enable dav and default site. + mkdir -p "$HTTPD_PREFIX/conf/conf-enabled"; \ + mkdir -p "$HTTPD_PREFIX/conf/sites-enabled"; \ ln -s ../conf-available/dav.conf "$HTTPD_PREFIX/conf/conf-enabled"; \ ln -s ../sites-available/default.conf "$HTTPD_PREFIX/conf/sites-enabled" -- cgit v1.2.3