Skip to content

Commit

Permalink
dockerfile: fix src stage pos
Browse files Browse the repository at this point in the history
  • Loading branch information
crazy-max committed May 27, 2024
1 parent c1b3225 commit a974399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit a974399

Please sign in to comment.