From: Pablo Zmdl Date: Mon, 13 Jan 2025 10:46:43 +0000 (+0100) Subject: Make apt not ask on upgrade X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=3ee7dd81fea13b4a1f11fd3ca416e485f28d198b;p=roundcube-roundcubemail-docker.git Make apt not ask on upgrade --- diff --git a/apache/Dockerfile b/apache/Dockerfile index 24e5c56..9c1540e 100644 --- a/apache/Dockerfile +++ b/apache/Dockerfile @@ -5,7 +5,7 @@ LABEL org.opencontainers.image.source="https://github.com/roundcube/roundcubemai # This should be done by the upstream images, but as long as they don't do it, # we rather use our own hands than suffer from outdated packages. # Kept as standalone command to make it stand out and be easy to remove. -RUN apt-get update && apt-get upgrade && apt-get clean +RUN apt-get update && apt-get -y upgrade && apt-get clean RUN set -ex; \ if [ "apache" = "apache" ]; then a2enmod rewrite; fi; \ diff --git a/fpm/Dockerfile b/fpm/Dockerfile index d5aab2b..5646d6b 100644 --- a/fpm/Dockerfile +++ b/fpm/Dockerfile @@ -5,7 +5,7 @@ LABEL org.opencontainers.image.source="https://github.com/roundcube/roundcubemai # This should be done by the upstream images, but as long as they don't do it, # we rather use our own hands than suffer from outdated packages. # Kept as standalone command to make it stand out and be easy to remove. -RUN apt-get update && apt-get upgrade && apt-get clean +RUN apt-get update && apt-get -y upgrade && apt-get clean RUN set -ex; \ if [ "fpm" = "apache" ]; then a2enmod rewrite; fi; \ diff --git a/templates/Dockerfile-debian.templ b/templates/Dockerfile-debian.templ index ccda8b7..e31cd18 100644 --- a/templates/Dockerfile-debian.templ +++ b/templates/Dockerfile-debian.templ @@ -5,7 +5,7 @@ LABEL org.opencontainers.image.source="https://github.com/roundcube/roundcubemai # This should be done by the upstream images, but as long as they don't do it, # we rather use our own hands than suffer from outdated packages. # Kept as standalone command to make it stand out and be easy to remove. -RUN apt-get update && apt-get upgrade && apt-get clean +RUN apt-get update && apt-get -y upgrade && apt-get clean RUN set -ex; \ if [ "%%VARIANT%%" = "apache" ]; then a2enmod rewrite; fi; \