Files
postfix-docker/Dockerfile
Renovate Bot 53170442d2
Some checks failed
renovate/stability-days Updates have met minimum release age requirement
Test Pull Request / Build Image (pull_request) Successful in 37s
Test Pull Request / Notify (pull_request) Successful in 3s
Build Main Image / Build Image (push) Failing after 11m54s
Build Main Image / Notify (push) Has been cancelled
Update alpine Docker tag to v3.23
2026-05-03 12:00:52 +00:00

21 lines
620 B
Docker

FROM alpine:3.23
RUN apk update && \
apk add bash gawk cyrus-sasl cyrus-sasl-login cyrus-sasl-crammd5 mailx \
postfix postfix-pgsql && \
rm -rf /var/cache/apk/* && \
mkdir -p /var/log/supervisor/ /var/run/supervisor/ && \
touch /etc/postfix/pgsql-relay-domains.cf && \
touch /etc/postfix/pgsql-transport-maps.cf && \
echo 'maillog_file = /dev/stdout' >> /etc/postfix/main.cf && \
sed -i -e 's/inet_interfaces = localhost/inet_interfaces = all/g' /etc/postfix/main.cf
RUN mkdir /config
COPY run.sh /
RUN chmod +x /run.sh
RUN newaliases
EXPOSE 25
#ENTRYPOINT ["/run.sh"]
CMD ["/run.sh"]