diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-14 06:00:35 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-14 06:00:35 +0200 |
commit | 407df523e5262280f0f5f5d5a3ebfd2a89207580 (patch) | |
tree | af19d08cf57f85ecb70e64737bab7e1f01a9db56 /2.4/Dockerfile | |
parent | cc489762bd13534a2c7f97f7f5c43e9145dc89bd (diff) | |
download | apache-407df523e5262280f0f5f5d5a3ebfd2a89207580.tar.gz apache-407df523e5262280f0f5f5d5a3ebfd2a89207580.tar.bz2 apache-407df523e5262280f0f5f5d5a3ebfd2a89207580.tar.xz apache-407df523e5262280f0f5f5d5a3ebfd2a89207580.zip |
Really change pid file to /tmp folder
Diffstat (limited to '2.4/Dockerfile')
-rw-r--r-- | 2.4/Dockerfile | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/2.4/Dockerfile b/2.4/Dockerfile index 6ba5e7a..6d02469 100644 --- a/2.4/Dockerfile +++ b/2.4/Dockerfile @@ -4,10 +4,9 @@ FROM httpd:alpine # ENV HTTPD_PREFIX /usr/local/apache2 # WORKDIR "$HTTPD_PREFIX" -# Copy in our configuration files. -COPY conf/ conf/ - RUN set -ex; \ + # Install openssl if we need to generate a self-signed certificate. + apk add --no-cache openssl; \ # Create empty default DocumentRoot. mkdir -p "/var/www/html"; \ # Create directories for Dav data and lock database. @@ -43,17 +42,20 @@ RUN set -ex; \ printf '%s\n' "Include conf/conf-enabled/*.conf" \ >> "conf/httpd.conf"; \ printf '%s\n' "Include conf/sites-enabled/*.conf" \ - >> "conf/httpd.conf"; \ - \ + >> "conf/httpd.conf" + +COPY conf/ conf/ + +RUN set -ex; \ # Enable dav and default site. mkdir -p "conf/conf-enabled"; \ mkdir -p "conf/sites-enabled"; \ ln -s ../conf-available/dav.conf "conf/conf-enabled"; \ - ln -s ../sites-available/default.conf "conf/sites-enabled"; \ - # Install openssl if we need to generate a self-signed certificate. - apk add --no-cache openssl + ln -s ../conf-available/pid.conf "conf/conf-enabled"; \ + ln -s ../sites-available/default.conf "conf/sites-enabled" COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh + EXPOSE 8080/tcp 4430/tcp ENTRYPOINT [ "docker-entrypoint.sh" ] CMD [ "httpd-foreground" ] |