Refactor: gomplate + debian 13 (#1)
All checks were successful
Build Docker images / docker (eumau/postfix, 6) (push) Successful in 13m5s
All checks were successful
Build Docker images / docker (eumau/postfix, 6) (push) Successful in 13m5s
Co-authored-by: Mauro Torrez <mauro@layer7.mx> Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,7 +1,9 @@
|
||||
FROM eumau/debian:bookworm-slim
|
||||
LABEL maintainer "Mauro Torrez <mauro@mau.ro>"
|
||||
FROM debian:trixie-slim
|
||||
LABEL maintainer="Mauro Torrez <mauro@mau.ro>"
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
ENV LC_ALL C
|
||||
ARG TARGETARCH
|
||||
ARG GOMPLATE_VERSION=4.3.0
|
||||
ENV LC_ALL=C
|
||||
|
||||
ENV BIFF=no
|
||||
ENV BOGOFILTER_ENABLE="yes"
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user