@@ -4,18 +4,13 @@ LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
44RUN echo "postfix postfix/mailname string mail.example.com" | debconf-set-selections
55RUN echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections
66
7- ENV PF_VERSION="3.7.11"
8- ENV PF_REVISION="0"
9- ENV PF_PACKAGE="3.7.11-0+deb12u1"
10- RUN export DEBIAN_FRONTEND=noninteractive \
11- && PF_VERSION=${PF_PACKAGE} \
12- && apt-get update \
7+ RUN apt-get update \
138 && apt-get install -y --no-install-recommends \
149 default-mysql-client \
1510 apt-utils \
1611 procps \
17- postfix=${PF_VERSION} \
18- postfix-mysql=${PF_VERSION} \
12+ postfix \
13+ postfix-mysql \
1914 dovecot-core \
2015 dovecot-imapd \
2116 dovecot-pop3d \
@@ -78,8 +73,6 @@ RUN chmod 755 /usr/local/mailserver/*.sh \
7873ARG ARG_CREATED
7974ARG ARG_URL=https://github.com/technicalguru/docker-mailserver-postfix
8075ARG ARG_SOURCE=https://github.com/technicalguru/docker-mailserver-postfix
81- ARG ARG_VERSION="${PF_VERSION}.${PF_REVISION}"
82- ARG ARG_REVISION="${PF_REVISION}"
8376ARG ARG_VENDOR=technicalguru
8477ARG ARG_TITLE=technicalguru/mailserver-postfix
8578ARG ARG_DESCRIPTION="Provides Postfix/Dovecot MTA/MDA based on Debian with MySQL backend"
@@ -90,8 +83,6 @@ ARG ARG_LICENSES=GPL-3.0-or-later
9083LABEL org.opencontainers.image.created=$ARG_CREATED
9184LABEL org.opencontainers.image.url=$ARG_URL
9285LABEL org.opencontainers.image.source=$ARG_SOURCE
93- LABEL org.opencontainers.image.version=$ARG_VERSION
94- LABEL org.opencontainers.image.revision=$ARG_REVISION
9586LABEL org.opencontainers.image.vendor=$ARG_VENDOR
9687LABEL org.opencontainers.image.title=$ARG_TITLE
9788LABEL org.opencontainers.image.description=$ARG_DESCRIPTION
@@ -120,3 +111,7 @@ EXPOSE 10025
120111# CMD ["/usr/local/mailserver/loop.sh"]
121112CMD ["/usr/local/mailserver/entrypoint.sh" ]
122113
114+ RUN echo "Postfix version: $(postconf -d mail_version)" \
115+ && echo "Dovecot version: $(dovecot --version)"
116+
117+
0 commit comments