add smtp service

This commit is contained in:
2025-12-18 20:52:19 +00:00
parent e568105b99
commit 2fdf12259c
2 changed files with 15 additions and 0 deletions

13
smtp/Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM alpine:3.22
WORKDIR /
RUN apk add --no-cache git autoconf automake build-base gettext gettext-dev gnutls-dev libtool make texinfo
RUN 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
ARG PORT=2500
EXPOSE $PORT
CMD ["msmtpd", "--port=$PORT"]