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
|
2024-02-24 10:58:47 +00:00
|
|
|
RUN if [ -n ${HTTP_PROXY} ] ; then sed -i -e s'/https/http/' /etc/apk/repositories; fi
|
2023-04-25 11:32:24 +00:00
|
|
|
|
2024-02-24 10:58:47 +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"]
|