2026-06-15 22:05:41 +08:00
|
|
|
# syntax=docker/dockerfile:1.7
|
|
|
|
|
|
2026-06-14 01:07:48 +08:00
|
|
|
FROM debian:bookworm-slim
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
2026-06-15 22:05:41 +08:00
|
|
|
RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
|
|
|
|
|
--mount=type=cache,target=/var/lib/apt/lists,sharing=locked \
|
|
|
|
|
rm -f /etc/apt/apt.conf.d/docker-clean && \
|
2026-06-16 22:10:29 +08:00
|
|
|
apt-get update && apt-get install -y --no-install-recommends postfix postfix-sqlite ca-certificates rsyslog ssl-cert
|
2026-06-14 01:07:48 +08:00
|
|
|
COPY main.cf /etc/postfix/main.cf
|
|
|
|
|
COPY master.cf /etc/postfix/master.cf
|
|
|
|
|
COPY sqlite-*.cf /etc/postfix/
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
RUN chmod +x /entrypoint.sh
|
2026-06-24 10:47:16 +08:00
|
|
|
EXPOSE 25
|
2026-06-14 01:07:48 +08:00
|
|
|
CMD ["/entrypoint.sh"]
|