2023-12-20 23:11:27 +00:00
|
|
|
FROM docker.io/debian:bookworm-slim@sha256:f80c45482c8d147da87613cb6878a7238b8642bcc24fc11bad78c7bec726f340
|
2024-01-02 17:10:34 +00:00
|
|
|
ARG VERSION=3.7.9-0+deb12u1 # renovate: datasource=repology depName=debian_12/postfix versioning=loose
|
2021-01-13 16:36:50 +00:00
|
|
|
|
2021-03-21 00:16:51 +00:00
|
|
|
RUN apt-get update -y && apt-get install -y --no-install-recommends \
|
2023-11-05 17:58:29 +00:00
|
|
|
postfix=${VERSION}* postfix-mysql=${VERSION}* syslog-ng-core gettext ca-certificates \
|
|
|
|
netcat-traditional
|
2021-01-13 16:36:50 +00:00
|
|
|
|
|
|
|
COPY container/config /etc/postfix
|
|
|
|
COPY container/run-postfix /run-postfix
|
|
|
|
|
|
|
|
RUN addgroup --system --gid 5000 virtual
|
|
|
|
RUN adduser --system --uid 5000 --ingroup virtual --home /var/mail/virtual virtual
|
|
|
|
|
|
|
|
EXPOSE 25 465 587
|
|
|
|
ENTRYPOINT ["/run-postfix"]
|