diff options
| author | Joe Carstairs <me@joeac.net> | 2026-03-20 10:08:49 +0000 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-03-20 10:14:01 +0000 |
| commit | 07b695d15b5df7dd7136e6ed474ec120a5374c57 (patch) | |
| tree | 01aee3ca08657bfed4936bc8b29890f2e6962d48 /smtp | |
| parent | 28b2e27469f9181bdef384b3b233cd490460a368 (diff) | |
uses apk del in smtp/Dockerfile to cut layer size
Diffstat (limited to 'smtp')
| -rw-r--r-- | smtp/Dockerfile | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/smtp/Dockerfile b/smtp/Dockerfile index 2f5fef4..9e9d9ab 100644 --- a/smtp/Dockerfile +++ b/smtp/Dockerfile @@ -1,18 +1,21 @@ -FROM alpine:3.23 +FROM alpine:3.23 AS build WORKDIR / RUN mkdir -p /var/msmtp -RUN apk --update --no-cache add git autoconf automake build-base gettext gettext-dev gnutls-dev libtool make texinfo && \ +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 + 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 EXPOSE $LOCAL_SMTP_PORT - COPY .msmtprc ./ CMD msmtpd \ |
