mirror of
https://github.com/hoellen/docker-nextcloud.git
synced 2025-05-10 14:29:25 +00:00
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.
This commit is contained in:
parent
7cab792c26
commit
7bf8e7c66b
10
Dockerfile
10
Dockerfile
@ -1,11 +1,9 @@
|
|||||||
# -------------- Build-time variables --------------
|
# -------------- Build-time variables --------------
|
||||||
ARG NEXTCLOUD_VERSION=21.0.2
|
ARG NEXTCLOUD_VERSION=21.0.2
|
||||||
|
ARG PHP_VERSION=8.0
|
||||||
|
ARG NGINX_VERSION=1.20
|
||||||
|
|
||||||
ARG ALPINE_VERSION=3.13
|
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 HARDENED_MALLOC_VERSION=8
|
||||||
|
|
||||||
ARG UID=1000
|
ARG UID=1000
|
||||||
@ -56,8 +54,8 @@ RUN apk -U upgrade \
|
|||||||
pdo_pgsql \
|
pdo_pgsql \
|
||||||
zip \
|
zip \
|
||||||
gmp \
|
gmp \
|
||||||
&& pecl install APCu-${APCU_VERSION} \
|
&& pecl install APCu \
|
||||||
&& pecl install redis-${REDIS_VERSION} \
|
&& pecl install redis \
|
||||||
&& echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \
|
&& echo "extension=redis.so" > /usr/local/etc/php/conf.d/redis.ini \
|
||||||
&& apk del build-deps \
|
&& apk del build-deps \
|
||||||
&& rm -rf /var/cache/apk/*
|
&& rm -rf /var/cache/apk/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user