diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000000..176a458f94e --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* text=auto diff --git a/Containers/apache/Dockerfile b/Containers/apache/Dockerfile index ca9eeac5df2..d268ef903f1 100644 --- a/Containers/apache/Dockerfile +++ b/Containers/apache/Dockerfile @@ -14,6 +14,7 @@ COPY --chmod=775 healthcheck.sh /healthcheck.sh VOLUME /mnt/data RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache shadow; \ groupmod -g 333 xfs; \ usermod -u 333 -g 333 xfs; \ diff --git a/Containers/borgbackup/Dockerfile b/Containers/borgbackup/Dockerfile index c2ffce90bb6..0f5cb3d01b9 100644 --- a/Containers/borgbackup/Dockerfile +++ b/Containers/borgbackup/Dockerfile @@ -3,6 +3,7 @@ FROM alpine:3.19.1 RUN set -ex; \ \ + apk upgrade --no-cache -a; \ apk add --no-cache \ util-linux-misc \ bash \ diff --git a/Containers/clamav/Dockerfile b/Containers/clamav/Dockerfile index d10da1eaabb..5afc2d02717 100644 --- a/Containers/clamav/Dockerfile +++ b/Containers/clamav/Dockerfile @@ -5,6 +5,7 @@ FROM clamav/clamav:1.3.0-47 COPY clamav.conf /tmp/clamav.conf RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache tzdata; \ cat /tmp/clamav.conf >> /etc/clamav/clamd.conf; \ rm /tmp/clamav.conf; \ diff --git a/Containers/collabora/Dockerfile b/Containers/collabora/Dockerfile index 9069429b13a..e69d8dbdc3c 100644 --- a/Containers/collabora/Dockerfile +++ b/Containers/collabora/Dockerfile @@ -3,12 +3,13 @@ FROM collabora/code:23.05.10.1.1 USER root +ARG DEBIAN_FRONTEND noninteractive # hadolint ignore=DL3008 RUN set -ex; \ \ apt-get update; \ - export DEBIAN_FRONTEND=noninteractive; \ + apt-get upgrade -y; \ apt-get install -y --no-install-recommends \ tzdata \ netcat-openbsd \ diff --git a/Containers/docker-socket-proxy/Dockerfile b/Containers/docker-socket-proxy/Dockerfile index 26278cf8d5e..ed163191645 100644 --- a/Containers/docker-socket-proxy/Dockerfile +++ b/Containers/docker-socket-proxy/Dockerfile @@ -5,6 +5,7 @@ FROM haproxy:2.9.7-alpine3.19 USER root ENV NEXTCLOUD_HOST nextcloud-aio-nextcloud RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ ca-certificates \ tzdata \ diff --git a/Containers/domaincheck/Dockerfile b/Containers/domaincheck/Dockerfile index 5f695bc9381..82aad6b5378 100644 --- a/Containers/domaincheck/Dockerfile +++ b/Containers/domaincheck/Dockerfile @@ -1,6 +1,7 @@ # syntax=docker/dockerfile:latest FROM alpine:3.19.1 RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache bash lighttpd netcat-openbsd; \ adduser -S www-data -G www-data; \ rm -rf /etc/lighttpd/lighttpd.conf; \ diff --git a/Containers/fulltextsearch/Dockerfile b/Containers/fulltextsearch/Dockerfile index 3beeedfe509..8355fd206c5 100644 --- a/Containers/fulltextsearch/Dockerfile +++ b/Containers/fulltextsearch/Dockerfile @@ -4,11 +4,13 @@ FROM elasticsearch:8.13.0 USER root +ARG DEBIAN_FRONTEND noninteractive + # hadolint ignore=DL3008 RUN set -ex; \ \ - export DEBIAN_FRONTEND=noninteractive; \ apt-get update; \ + apt-get upgrade -y; \ apt-get install -y --no-install-recommends \ tzdata \ ; \ diff --git a/Containers/imaginary/Dockerfile b/Containers/imaginary/Dockerfile index e477fe31f3a..02d4e0edf19 100644 --- a/Containers/imaginary/Dockerfile +++ b/Containers/imaginary/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:latest FROM golang:1.22.2-alpine3.18 as go -ENV IMAGINARY_HASH 6cd9edd1d3fb151eb773c14552886e4fc8e50138 +ENV IMAGINARY_HASH 6cd9edd1d3fb151eb773c14552886e4fc8e50138 RUN set -ex; \ apk add --no-cache \ @@ -15,6 +15,7 @@ RUN set -ex; \ FROM alpine:3.18.6 RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ tzdata \ ca-certificates \ diff --git a/Containers/mastercontainer/Dockerfile b/Containers/mastercontainer/Dockerfile index fbd022b1d77..3d141283331 100644 --- a/Containers/mastercontainer/Dockerfile +++ b/Containers/mastercontainer/Dockerfile @@ -19,6 +19,7 @@ WORKDIR /var/www/docker-aio # hadolint ignore=SC2086,DL3047,DL3003,DL3004 RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache shadow; \ groupmod -g 333 xfs; \ usermod -u 333 -g 333 xfs; \ diff --git a/Containers/nextcloud/Dockerfile b/Containers/nextcloud/Dockerfile index 76f1e159611..08485b8e24e 100644 --- a/Containers/nextcloud/Dockerfile +++ b/Containers/nextcloud/Dockerfile @@ -23,6 +23,7 @@ VOLUME /var/www/html # Custom: change id of www-data user as it needs to be the same like on old installations # hadolint ignore=SC2086,DL3003 RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache shadow; \ deluser www-data; \ groupmod -g 333 xfs; \ diff --git a/Containers/notify-push/Dockerfile b/Containers/notify-push/Dockerfile index 48a3774126c..5bd7a4eef8f 100644 --- a/Containers/notify-push/Dockerfile +++ b/Containers/notify-push/Dockerfile @@ -5,6 +5,7 @@ COPY --chmod=775 start.sh /start.sh COPY --chmod=775 healthcheck.sh /healthcheck.sh RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ ca-certificates \ netcat-openbsd \ diff --git a/Containers/postgresql/Dockerfile b/Containers/postgresql/Dockerfile index 939ca00876a..bbb8d3027ff 100644 --- a/Containers/postgresql/Dockerfile +++ b/Containers/postgresql/Dockerfile @@ -7,6 +7,7 @@ COPY --chmod=775 healthcheck.sh /healthcheck.sh COPY --chmod=775 init-user-db.sh /docker-entrypoint-initdb.d/init-user-db.sh RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ bash \ openssl \ diff --git a/Containers/redis/Dockerfile b/Containers/redis/Dockerfile index e184ba403fc..62f18b418b5 100644 --- a/Containers/redis/Dockerfile +++ b/Containers/redis/Dockerfile @@ -5,6 +5,7 @@ FROM redis:7.2.4-alpine COPY --chmod=775 start.sh /start.sh RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache openssl bash; \ \ # Give root a random password diff --git a/Containers/talk-recording/Dockerfile b/Containers/talk-recording/Dockerfile index b2c2d28b645..fb6ba6e3897 100644 --- a/Containers/talk-recording/Dockerfile +++ b/Containers/talk-recording/Dockerfile @@ -10,6 +10,7 @@ ENV SKIP_VERIFY false ENV HPB_PATH /standalone-signaling/ RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ ca-certificates \ tzdata \ diff --git a/Containers/talk/Dockerfile b/Containers/talk/Dockerfile index 304c9555d20..91e2b1793fd 100644 --- a/Containers/talk/Dockerfile +++ b/Containers/talk/Dockerfile @@ -46,6 +46,7 @@ COPY --chmod=775 healthcheck.sh /healthcheck.sh COPY --chmod=664 supervisord.conf /supervisord.conf RUN set -ex; \ + apk upgrade --no-cache -a; \ apk add --no-cache \ ca-certificates \ tzdata \ diff --git a/Containers/watchtower/Dockerfile b/Containers/watchtower/Dockerfile index d098f748dcc..f7ba3ddc59a 100644 --- a/Containers/watchtower/Dockerfile +++ b/Containers/watchtower/Dockerfile @@ -4,7 +4,9 @@ FROM containrrr/watchtower:1.7.1 as watchtower FROM alpine:3.19.1 -RUN apk add --no-cache bash +RUN apk upgrade --no-cache -a; \ + apk add --no-cache bash + COPY --from=watchtower /watchtower /watchtower COPY --chmod=775 start.sh /start.sh