You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
606 B
22 lines
606 B
FROM quay.io/centos/centos:stream10 AS builder
|
|
|
|
# Tools needed to fetch and unpack the smtprelay release
|
|
RUN dnf install -y curl jq tar gzip \
|
|
&& dnf clean all
|
|
|
|
COPY install-smtprelay.sh /
|
|
RUN /install-smtprelay.sh
|
|
|
|
FROM quay.io/centos/centos:stream10
|
|
|
|
# CA certificates are required to establish TLS connections to the relay host
|
|
RUN dnf install -y ca-certificates \
|
|
&& dnf clean all
|
|
|
|
COPY --from=builder /usr/local/bin/smtprelay /usr/local/bin/smtprelay
|
|
|
|
# Submission port
|
|
EXPOSE 587
|
|
|
|
ENTRYPOINT [ "/usr/local/bin/smtprelay" ]
|
|
CMD [ "--config", "/etc/smtprelay/smtprelay.ini", "-logfile=/dev/stdout" ]
|
|
|