From a9743990f0373db918b7c6ec92ec1e372e961ad1 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 27 May 2024 09:25:38 +0200 Subject: [PATCH] dockerfile: fix src stage pos --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4df8cda..44ea0a1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,8 @@ ARG PUREFTPD_VERSION=1.0.50 ARG ALPINE_VERSION=3.17 ARG XX_VERSION=1.2.1 +FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx + FROM --platform=${BUILDPLATFORM} crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 AS src COPY --from=xx / / RUN apk --update --no-cache add git patch @@ -14,7 +16,6 @@ RUN git fetch origin "${PUREFTPD_VERSION}" && git checkout -q FETCH_HEAD COPY patchs /src RUN patch -p1 < ../minimal.patch -FROM --platform=${BUILDPLATFORM} tonistiigi/xx:${XX_VERSION} AS xx FROM --platform=${BUILDPLATFORM} crazymax/alpine-s6:${ALPINE_VERSION}-2.2.0.3 AS builder COPY --from=xx / / RUN apk --update --no-cache add autoconf automake binutils clang14 file make pkgconf tar xz