From e9ddf34d44fe3ccd6de415fb59c6089611b4fb56 Mon Sep 17 00:00:00 2001 From: Feng Yu Date: Thu, 24 Nov 2016 00:19:07 +0800 Subject: [PATCH] Copy 2.2-alpine compile args from 2.2, and remove useless dirs --- 2.2/Dockerfile | 2 +- 2.2/alpine/Dockerfile | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/2.2/Dockerfile b/2.2/Dockerfile index f3743eb..3b12d3e 100644 --- a/2.2/Dockerfile +++ b/2.2/Dockerfile @@ -67,7 +67,7 @@ RUN set -x \ && make install \ \ && cd .. \ - && rm -r src \ + && rm -r src build man manual \ \ && sed -ri \ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \ diff --git a/2.2/alpine/Dockerfile b/2.2/alpine/Dockerfile index 8bd56c2..368b50e 100644 --- a/2.2/alpine/Dockerfile +++ b/2.2/alpine/Dockerfile @@ -57,12 +57,14 @@ RUN set -x \ \ && ./configure \ --prefix="$HTTPD_PREFIX" \ - --enable-mods-shared=reallyall \ +# https://httpd.apache.org/docs/2.2/programs/configure.html +# Caveat: --enable-mods-shared=all does not actually build all modules. To build all modules then, one might use: + --enable-mods-shared='all ssl ldap cache proxy authn_alias mem_cache file_cache authnz_ldap charset_lite dav_lock disk_cache' \ && make -j"$(getconf _NPROCESSORS_ONLN)" \ && make install \ \ && cd .. \ - && rm -r src \ + && rm -r src build man manual \ \ && sed -ri \ -e 's!^(\s*CustomLog)\s+\S+!\1 /proc/self/fd/1!g' \