Skip to content

Commit afdff69

Browse files
committed
Multi-arch container build
1 parent d33dc53 commit afdff69

3 files changed

Lines changed: 19 additions & 14 deletions

File tree

Dockerfile

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,13 @@ LABEL maintainer="Ralph Schuster <github@ralph-schuster.eu>"
44
RUN echo "postfix postfix/mailname string mail.example.com" | debconf-set-selections
55
RUN 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 \
7873
ARG ARG_CREATED
7974
ARG ARG_URL=https://github.com/technicalguru/docker-mailserver-postfix
8075
ARG ARG_SOURCE=https://github.com/technicalguru/docker-mailserver-postfix
81-
ARG ARG_VERSION="${PF_VERSION}.${PF_REVISION}"
82-
ARG ARG_REVISION="${PF_REVISION}"
8376
ARG ARG_VENDOR=technicalguru
8477
ARG ARG_TITLE=technicalguru/mailserver-postfix
8578
ARG 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
9083
LABEL org.opencontainers.image.created=$ARG_CREATED
9184
LABEL org.opencontainers.image.url=$ARG_URL
9285
LABEL org.opencontainers.image.source=$ARG_SOURCE
93-
LABEL org.opencontainers.image.version=$ARG_VERSION
94-
LABEL org.opencontainers.image.revision=$ARG_REVISION
9586
LABEL org.opencontainers.image.vendor=$ARG_VENDOR
9687
LABEL org.opencontainers.image.title=$ARG_TITLE
9788
LABEL org.opencontainers.image.description=$ARG_DESCRIPTION
@@ -120,3 +111,7 @@ EXPOSE 10025
120111
#CMD ["/usr/local/mailserver/loop.sh"]
121112
CMD ["/usr/local/mailserver/entrypoint.sh"]
122113

114+
RUN echo "Postfix version: $(postconf -d mail_version)" \
115+
&& echo "Dovecot version: $(dovecot --version)"
116+
117+

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Related images:
1414
# Tags
1515
The following versions are available from DockerHub. The image tag matches the Postfix version.
1616

17-
* [3.7.11.2, 3.7.11, 3.7, 3, latest](https://github.com/technicalguru/docker-mailserver-postfix/tree/v3.7.11.2) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfix/blob/3.7.11.2/Dockerfile)
17+
* [3.7.11.3, 3.7.11, 3.7, 3, latest](https://github.com/technicalguru/docker-mailserver-postfix/tree/v3.7.11.3) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfix/blob/3.7.11.3/Dockerfile)
1818
* [3.5.18.0, 3.5.18, 3.5](https://github.com/technicalguru/docker-mailserver-postfix/tree/v3.5.18.0) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfix/blob/3.5.18.0/Dockerfile)
1919
* [3.4.14.0, 3.4.14, 3.4](https://github.com/technicalguru/docker-mailserver-postfix/tree/v3.4.14.0) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-postfix/blob/3.4.14.0/Dockerfile)
2020

build.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
1-
docker build --progress=plain -t technicalguru/mailserver-postfix:latest .
1+
docker buildx build \
2+
--progress=plain \
3+
-t technicalguru/mailserver-postfix:latest \
4+
-t technicalguru/mailserver-postfix:3.7.11.3 \
5+
-t technicalguru/mailserver-postfix:3.7.11 \
6+
-t technicalguru/mailserver-postfix:3.7 \
7+
-t technicalguru/mailserver-postfix:3 \
8+
--push \
9+
--platform linux/amd64,linux/arm64 \
10+
11+
#docker build --progress=plain -t technicalguru/mailserver-postfix:latest .

0 commit comments

Comments
 (0)