Skip to content

Commit 619c1dc

Browse files
committed
Multi-arch container build
1 parent 84a3f51 commit 619c1dc

3 files changed

Lines changed: 19 additions & 10 deletions

File tree

Dockerfile

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,8 @@ RUN apt-get install -y --no-install-recommends \
4141
spamc
4242

4343
# Amavis-new
44-
ENV AV_VERSION="1:2.13"
45-
ENV AV_REVISION="0"
46-
ENV AV_PACKAGE="1:2.13.0-3+deb12u1"
4744
RUN apt-get install -y --no-install-recommends \
48-
amavisd-new=${AV_PACKAGE} \
45+
amavisd-new \
4946
&& rm -rf /var/lib/apt/lists/*
5047

5148
# Create initial AV data
@@ -91,8 +88,6 @@ RUN chmod 777 /var/log
9188
ARG ARG_CREATED
9289
ARG ARG_URL=https://github.com/technicalguru/docker-mailserver-amavis
9390
ARG ARG_SOURCE=https://github.com/technicalguru/docker-mailserver-amavis
94-
ARG ARG_VERSION="${AV_VERSION}.${AV_REVISION}"
95-
ARG ARG_REVISION="${AV_REVISION}"
9691
ARG ARG_VENDOR=technicalguru
9792
ARG ARG_TITLE=technicalguru/mailserver-amavis
9893
ARG ARG_DESCRIPTION="Provides Amavis mail scanner with ClamAV and SpamAssassin"
@@ -103,8 +98,6 @@ ARG ARG_LICENSES=GPL-3.0-or-later
10398
LABEL org.opencontainers.image.created=$ARG_CREATED
10499
LABEL org.opencontainers.image.url=$ARG_URL
105100
LABEL org.opencontainers.image.source=$ARG_SOURCE
106-
LABEL org.opencontainers.image.version=$ARG_VERSION
107-
LABEL org.opencontainers.image.revision=$ARG_REVISION
108101
LABEL org.opencontainers.image.vendor=$ARG_VENDOR
109102
LABEL org.opencontainers.image.title=$ARG_TITLE
110103
LABEL org.opencontainers.image.description=$ARG_DESCRIPTION
@@ -122,3 +115,5 @@ WORKDIR /usr/local/amavis
122115
CMD ["/usr/local/amavis/entrypoint.sh"]
123116
#CMD ["/usr/local/amavis/loop.sh"]
124117

118+
RUN echo "Amavis version: $(amavisd -V)"
119+

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ Related images:
1515
# Tags
1616
The following versions are available from DockerHub. The image tag matches the Amavisd-new version.
1717

18-
* [2.13.0.3, 2.13.0, 2.13, 2, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-amavis/tree/v2.13.0.3) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-amavis/blob/2.13.0.3/Dockerfile)
18+
* [2.13.0.4, 2.13.0, 2.13, 2, latest](https://hub.docker.com/repository/docker/technicalguru/mailserver-amavis/tree/v2.13.0.4) - [Dockerfile](https://github.com/technicalguru/docker-mailserver-amavis/blob/2.13.0.3/Dockerfile)
19+
20+
# Supported Platforms
21+
* linux/amd64
22+
* linux/arm64
1923

2024
# Features
2125
* [Amavis Checker](https://www.amavis.org/) v2.13.0

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-amavis:latest .
1+
docker buildx build \
2+
--progress=plain \
3+
-t technicalguru/mailserver-amavis:latest \
4+
-t technicalguru/mailserver-amavis:2.13.0.3 \
5+
-t technicalguru/mailserver-amavis:2.13.0 \
6+
-t technicalguru/mailserver-amavis:2.13 \
7+
-t technicalguru/mailserver-amavis:2 \
8+
--push \
9+
--platform linux/amd64,linux/arm64 \
10+
11+
#docker build --progress=plain -t technicalguru/mailserver-amavis:latest .

0 commit comments

Comments
 (0)