From 00e133ca4f35fd88983017d469359a74ca99efdc Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> Date: Sat, 28 Mar 2026 20:35:31 +0100 Subject: [PATCH] chore: update base image in Dockerfile and associated scripts Signed-off-by: Georg Lauterbach <44545919+georglauterbach@users.noreply.github.com> --- Dockerfile | 9 ++------- target/scripts/build/packages.sh | 26 +++++++++++++++----------- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index e2f7fc0d..6743f2a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ ARG DEBIAN_FRONTEND=noninteractive ARG DOVECOT_COMMUNITY_REPO=0 ARG LOG_LEVEL=trace -FROM docker.io/debian:12-slim AS stage-base +FROM docker.io/debian:13-slim AS stage-base ARG DEBIAN_FRONTEND ARG DOVECOT_COMMUNITY_REPO @@ -20,11 +20,6 @@ SHELL ["/bin/bash", "-e", "-o", "pipefail", "-c"] # ----------------------------------------------- COPY target/bin/sedfile /usr/local/bin/sedfile -RUN </dev/null + + chmod +x /usr/local/bin/sedfile + adduser --quiet --system --group --disabled-password --home /var/lib/clamav --no-create-home --uid 200 clamav } # Install third-party commands to /usr/local/bin @@ -91,7 +96,7 @@ function _install_packages() { local CODECS_PACKAGES=( altermime arj bzip2 cabextract cpio file - gzip lhasa liblz4-tool + gzip lhasa lz4 lrzip lzop nomarch p7zip-full pax rpm2cpio unrar-free unzip xz-utils @@ -154,7 +159,7 @@ function _install_dovecot() { # NOTE: AMD64 / x86_64 is the only supported arch from the Dovecot CE repo (thus noDMS built for ARM64 / aarch64) # Repo: https://repo.dovecot.org/ce-2.4-latest/debian/bookworm/dists/bookworm/main/ # Docs: https://repo.dovecot.org/#debian - if [[ ${DOVECOT_COMMUNITY_REPO} -eq 1 ]] && [[ "$(uname --machine)" == "x86_64" ]]; then + if [[ ${DOVECOT_COMMUNITY_REPO:-0} -eq 1 ]] && [[ $(uname --machine) == x86_64 ]]; then # WARNING: Repo only provides Debian Bookworm package support for Dovecot CE 2.4+. # As Debian Bookworm only packages Dovecot 2.3.x, building DMS with this alternative package repo may not yet be compatible with DMS: # - 2.3.19: https://salsa.debian.org/debian/dovecot/-/tree/stable/bookworm @@ -187,14 +192,15 @@ EOF } function _install_rspamd() { - # NOTE: DMS only supports the rspamd package via using the third-party repo maintained by Rspamd (AMD64 + ARM64): - # Repo: https://rspamd.com/apt-stable/dists/bookworm/main/ - # Docs: https://rspamd.com/downloads.html#debian-and-ubuntu-linux - # NOTE: Debian 12 provides Rspamd 3.4 (too old) and Rspamd discourages it's use + # NOTE: DMS only supports the Rspamd package by using the + # third-party repo maintained by Rspamd (AMD64 + ARM64) + # + # REF: https://rspamd.com/apt-stable/dists/trixie/main/ + # https://rspamd.com/downloads.html#debian-and-ubuntu-linux _log 'trace' 'Adding third-party package repository (Rspamd)' curl -fsSL https://rspamd.com/apt-stable/gpg.key \ - | gpg --dearmor >/usr/share/keyrings/upstream-rspamd.gpg + | gpg --dearmor > /usr/share/keyrings/upstream-rspamd.gpg cat >/etc/apt/sources.list.d/upstream-rspamd.sources <