Skip to content

Commit

Permalink
Merge pull request #69 from crazy-max/update
Browse files Browse the repository at this point in the history
msmtp 1.8.25
  • Loading branch information
crazy-max authored Nov 25, 2023
2 parents 21e387c + ae36bf9 commit c89e263
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
23 changes: 11 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
# syntax=docker/dockerfile:1

ARG MSMTP_VERSION=1.8.23
ARG ALPINE_VERSION=3.17
ARG XX_VERSION=1.2.1
ARG MSMTP_VERSION=1.8.25
ARG ALPINE_VERSION=3.18
ARG XX_VERSION=1.3.0

FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx
FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} AS base
COPY --from=xx / /
RUN apk --update --no-cache add clang curl file make pkgconf tar xz
RUN apk --update --no-cache add clang curl file lld make musl-dev pkgconfig tar xz
ARG MSMTP_VERSION
WORKDIR /src
RUN curl -sSL "https://marlam.de/msmtp/releases/msmtp-$MSMTP_VERSION.tar.xz" | tar xJv --strip 1

FROM base AS builder
ENV XX_CC_PREFER_LINKER=ld
ARG TARGETPLATFORM
RUN xx-apk --no-cache --no-scripts add g++ gettext-dev gnutls-dev libidn2-dev
RUN <<EOT
set -ex
CXX=xx-clang++ ./configure --host=$(xx-clang --print-target-triple) --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make -j$(nproc)
make install
xx-verify /usr/bin/msmtp
xx-verify /usr/bin/msmtpd
file /usr/bin/msmtpd
set -ex
CC=xx-clang CXX=xx-clang++ ./configure --host=$(xx-clang --print-target-triple) --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make -j$(nproc)
make install
xx-verify /usr/bin/msmtp
xx-verify /usr/bin/msmtpd
file /usr/bin/msmtpd
EOT

FROM crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3
Expand Down
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,10 @@ docker compose up -d

## Contributing

Want to contribute? Awesome! The most basic way to show your support is to star the project, or to raise issues. You
can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max) or by making
a [Paypal donation](https://www.paypal.me/crazyws) to ensure this journey continues indefinitely!
Want to contribute? Awesome! The most basic way to show your support is to star
the project, or to raise issues. You can also support this project by [**becoming a sponsor on GitHub**](https://github.com/sponsors/crazy-max)
or by making a [PayPal donation](https://www.paypal.me/crazyws) to ensure this
journey continues indefinitely!

Thanks again for your support, it is much appreciated! :pray:

Expand Down

0 comments on commit c89e263

Please sign in to comment.