From 7bf8e7c66bf04c1fa6e53675d6a67d6c7b6913e9 Mon Sep 17 00:00:00 2001 From: Wonderfall Date: Mon, 7 Jun 2021 00:31:57 +0200 Subject: [PATCH] versioning strategy for PHP/nginx This way security fixes can be applied automatically when the image is rebuilt, and there's less maintenance to do. If you're building yourself, make sure to build without cache if you attempt to apply fixes. --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 732683d..b52ea06 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,9 @@ # -------------- Build-time variables -------------- ARG NEXTCLOUD_VERSION=21.0.2 +ARG PHP_VERSION=8.0 +ARG NGINX_VERSION=1.20 ARG ALPINE_VERSION=3.13 -ARG PHP_VERSION=8.0.7 -ARG NGINX_VERSION=1.20.1 -ARG APCU_VERSION=5.1.20 -ARG REDIS_VERSION=5.3.4 ARG HARDENED_MALLOC_VERSION=8 ARG UID=1000 @@ -56,8 +54,8 @@ RUN apk -U upgrade \ pdo_pgsql \ zip \ gmp \ - && pecl install APCu-${APCU_VERSION} \ - && pecl install redis-${REDIS_VERSION} \ + && pecl install APCu \ + && pecl install redis \ && echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \ && apk del build-deps \ && rm -rf /var/cache/apk/*