Gomplate + Debian 13

This commit is contained in:
Mauro Torrez
2026-01-17 23:52:34 -03:00
parent f474d081a0
commit 48fff2b6f2
22 changed files with 267 additions and 342 deletions

View File

@@ -1,6 +1,8 @@
FROM eumau/debian:bookworm-slim
FROM debian:trixie-slim
LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
ARG DEBIAN_FRONTEND=noninteractive
ARG TARGETARCH
ARG GOMPLATE_VERSION=4.3.0
ENV LC_ALL C
ENV BIFF=no
@@ -73,6 +75,9 @@ RUN echo "_dev_null: /dev/null" > /etc/aliases \
ssl-cert \
ca-certificates \
bogofilter-sqlite \
curl \
&& curl -o /usr/local/bin/gomplate -sSL "https://github.com/hairyhenderson/gomplate/releases/download/v${GOMPLATE_VERSION}/gomplate_linux-${TARGETARCH}" \
&& chmod 755 /usr/local/bin/gomplate \
&& rm -rf /var/lib/apt/lists/* \
&& cp /usr/share/postfix/main.cf.debian /etc/postfix/main.cf \
&& mkdir -p /etc/postfix/rules \
@@ -110,10 +115,12 @@ RUN echo "_dev_null: /dev/null" > /etc/aliases \
anvil/unix/chroot=n \
scache/unix/chroot=n
ADD confd /etc/confd/
ADD postmap_all /usr/local/bin/
COPY --chmod=0755 entrypoint.sh /usr/local/bin/
COPY templates /etc/templates
COPY postmap_all /usr/local/bin/
VOLUME ["/ssl","/var/spool/postfix"]
EXPOSE 25/tcp 587/tcp
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["postfix","start-fg"]