FROM scratch AS base ENV VERSION=4.33 ENV SRC_HASH=507eb7b8d1015fbec5b935f34ebed15bf346bed04a11ab82b8eee848c4205aea ENV SRC_FILE=libev-${VERSION}.tar.gz ENV SRC_SITE=http://dist.schmorp.de/libev/Attic/${SRC_FILE} FROM base AS fetch ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} . FROM fetch AS build COPY --from=stagex/busybox . / COPY --from=stagex/binutils . / COPY --from=stagex/musl . / COPY --from=stagex/make . / COPY --from=stagex/gcc . / COPY --from=stagex/perl . / COPY --from=stagex/autoconf . / COPY --from=stagex/automake . / COPY --from=stagex/libtool . / COPY --from=stagex/m4 . / RUN --network=none tar -xf ${SRC_FILE} WORKDIR libev-${VERSION} ENV SOURCE_DATE_EPOCH=1 RUN --network=none <