Skip to content

Commit

Permalink
Make apt not ask on upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
pabzm committed Jan 14, 2025
1 parent e7bb1ba commit 3ee7dd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion apache/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion fpm/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down
2 changes: 1 addition & 1 deletion templates/Dockerfile-debian.templ
Original file line number Diff line number Diff line change
Expand Up @@ -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; \
Expand Down

0 comments on commit 3ee7dd8

Please sign in to comment.