smtp/Dockerfile uses msmtp package on git.joeac.net
This commit is contained in:
+1
-23
@@ -1,26 +1,4 @@
|
|||||||
FROM alpine:3.23 AS build
|
FROM git.joeac.net/joeac/armv7/msmtp:1.8.32-alpine3.23
|
||||||
|
|
||||||
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/
|
|
||||||
ARG LOCAL_SMTP_PORT
|
ARG LOCAL_SMTP_PORT
|
||||||
EXPOSE $LOCAL_SMTP_PORT
|
EXPOSE $LOCAL_SMTP_PORT
|
||||||
COPY .msmtprc ./
|
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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user