diff --git a/Dockerfile b/Dockerfile index 91fc0d3..c98247f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 <