diff options
author | Suren A. Chilingaryan <csa@suren.me> | 2019-08-16 08:19:33 +0200 |
---|---|---|
committer | Suren A. Chilingaryan <csa@suren.me> | 2019-08-16 08:19:33 +0200 |
commit | 953a02c8e17be67e290257ba3da790febba2fe61 (patch) | |
tree | ef67d67f96749e5576f452d75b7a1bda68ea6efa /2.4/Dockerfile | |
parent | 25e289a36058ab2e252c5b847f6312d5ba2a465f (diff) | |
download | apache-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/Dockerfile | 10 |
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"; \ |