summaryrefslogtreecommitdiffstats
path: root/2.4/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2019-08-16 08:19:33 +0200
committerSuren A. Chilingaryan <csa@suren.me>2019-08-16 08:19:33 +0200
commit953a02c8e17be67e290257ba3da790febba2fe61 (patch)
treeef67d67f96749e5576f452d75b7a1bda68ea6efa /2.4/Dockerfile
parent25e289a36058ab2e252c5b847f6312d5ba2a465f (diff)
downloadapache-953a02c8e17be67e290257ba3da790febba2fe61.tar.gz
apache-953a02c8e17be67e290257ba3da790febba2fe61.tar.bz2
apache-953a02c8e17be67e290257ba3da790febba2fe61.tar.xz
apache-953a02c8e17be67e290257ba3da790febba2fe61.zip
Change to php7
Diffstat (limited to '2.4/Dockerfile')
-rw-r--r--2.4/Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/2.4/Dockerfile b/2.4/Dockerfile
index 1c536ae..e33ff5d 100644
--- a/2.4/Dockerfile
+++ b/2.4/Dockerfile
@@ -2,7 +2,7 @@ FROM httpd:alpine
ARG ENABLE_PROXY=0
ARG ENABLE_DAV=0
-ARG ENABLE_PHP5=0
+ARG ENABLE_PHP=0
ARG EXTRA_PACKAGES=""
ARG EXTRA_MODULES=""
@@ -17,8 +17,8 @@ COPY docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN set -ex; \
# Install openssl if we need to generate a self-signed certificate.
packages="${EXTRA_PACKAGES} openssl apr-util-dbm_db"; \
- if [ ${ENABLE_PHP5} -ne 0 ]; then \
- packages="$packages php5-apache2"; \
+ if [ ${ENABLE_PHP} -ne 0 ]; then \
+ packages="$packages php7-apache2"; \
fi; \
apk add --no-cache $packages; \
# Create empty default DocumentRoot.
@@ -38,8 +38,8 @@ RUN set -ex; \
if [ ${ENABLE_DAV} -ne 0 ]; then \
modules="$modules dav dav_fs"; \
fi; \
- if [ ${ENABLE_PHP5} -ne 0 ]; then \
- modules="$modules php5"; \
+ if [ ${ENABLE_PHP} -ne 0 ]; then \
+ modules="$modules php7"; \
fi; \
for i in $modules; do \
sed -i -e "/^#LoadModule ${i}_module.*/s/^#//" "conf/httpd.conf"; \