From 3ee7dd81fea13b4a1f11fd3ca416e485f28d198b Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Mon, 13 Jan 2025 11:46:43 +0100 Subject: [PATCH] Make apt not ask on upgrade --- apache/Dockerfile | 2 +- fpm/Dockerfile | 2 +- templates/Dockerfile-debian.templ | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/apache/Dockerfile b/apache/Dockerfile index 24e5c56c3..9c1540edc 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 d5aab2b4f..5646d6bf9 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 ccda8b709..e31cd1832 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; \