smtptest/Dockerfile

15 lines
453 B
Docker
Raw Permalink Normal View History

2023-04-25 11:32:24 +00:00
# NAME leenooks/smtptest
# VERSION latest
FROM alpine
# Change to http respositories, so they we can cache the install packages
RUN if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositories; fi
2023-04-25 11:32:24 +00:00
RUN apk add --no-cache msmtp
2023-04-25 11:32:24 +00:00
RUN sed -i -e 's/^mailhub=mail$/mailhub=smtp/' -e "s/^hostname=/#hostname=/" -e 's/#FromLineOverride=YES/FromLineOverride=YES/' /etc/ssmtp/ssmtp.conf
COPY testmail /usr/local/bin/
ENTRYPOINT ["testmail"]