postfix: Use recommended method for service start

This commit updates Postfix to the latest version available for Debian
Bullseye, and switches the Docker entrypoint from an internal to a
publicly documented command, which is guaranteed to work in the future.
This commit is contained in:
Alex Palaistras 2022-07-11 21:22:38 +01:00
parent 38a7ae1587
commit de1627f4a6
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
FROM docker.io/debian:bullseye-slim FROM docker.io/debian:bullseye-slim
ARG VERSION=3.5.6 ARG VERSION=3.5.13
RUN apt-get update -y && apt-get install -y --no-install-recommends \ RUN apt-get update -y && apt-get install -y --no-install-recommends \
postfix=${VERSION}* postfix-mysql=${VERSION}* syslog-ng-core gettext ca-certificates postfix=${VERSION}* postfix-mysql=${VERSION}* syslog-ng-core gettext ca-certificates

View File

@ -13,4 +13,4 @@ postalias /etc/postfix/aliases
postfix set-permissions postfix set-permissions
# Run master daemon for Postfix. # Run master daemon for Postfix.
/usr/lib/postfix/sbin/master -c /etc/postfix -d /usr/sbin/postfix -c /etc/postfix start-fg