diff options
| author | Joe Carstairs <me@joeac.net> | 2026-06-22 13:16:28 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-06-22 13:16:28 +0100 |
| commit | df20a2ea1ec2d055fa800603212f2a4edcdf1fa3 (patch) | |
| tree | 7a14615e73aa4d4ac0fccf1d70103b9ec0c1e91a /smtp/Dockerfile | |
| parent | 870fdc3f65e7a4fdcdadb4851a71b1d456481fbd (diff) | |
smtp/Dockerfile uses msmtp package on git.joeac.net
Diffstat (limited to 'smtp/Dockerfile')
| -rw-r--r-- | smtp/Dockerfile | 24 |
1 files changed, 1 insertions, 23 deletions
diff --git a/smtp/Dockerfile b/smtp/Dockerfile index 9e9d9ab..dc4fb6e 100644 --- a/smtp/Dockerfile +++ b/smtp/Dockerfile @@ -1,26 +1,4 @@ -FROM alpine:3.23 AS build - -WORKDIR / -RUN mkdir -p /var/msmtp -RUN apk --update --no-cache add git autoconf automake build-base gettext-dev gnutls-dev libtool make texinfo && \ - git clone https://github.com/marlam/msmtp.git --branch msmtp-1.8.32 --single-branch --depth 1 -WORKDIR /msmtp -RUN autoreconf -fi && \ - ./configure && \ - make && \ - make install && \ - apk del git autoconf automake build-base gettext-dev gnutls-dev libtool make texinfo - -FROM alpine:3.23 AS final -RUN apk --update --no-cache add gettext -COPY --from=build /usr/local/bin/msmtp /usr/local/bin/msmtpd /usr/local/bin/ +FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23 ARG LOCAL_SMTP_PORT EXPOSE $LOCAL_SMTP_PORT COPY .msmtprc ./ - -CMD msmtpd \ - --auth=$LOCAL_SMTP_USER,'echo $LOCAL_SMTP_PASSWORD' \ - --command='msmtp -C .msmtprc -f %F --' \ - --interface=0.0.0.0 \ - --log=/var/msmtp/msmtpd.log \ - --port=$LOCAL_SMTP_PORT |
