FROM scratch AS base ENV VERSION=1.62.1 ENV SRC_HASH=d0b0b9d00500ee4aa3bfcac00145d3b1ef372fd301c35bff96cf019c739db1b4 ENV SRC_FILE=nghttp2-${VERSION}.tar.gz ENV SRC_SITE=https://github.com/nghttp2/nghttp2/releases/download/v${VERSION}/${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/zlib . / COPY --from=stagex/pkgconf . / COPY --from=stagex/openssl . / COPY --from=stagex/libev . / COPY --from=stagex/c-ares . / RUN --network=none tar -xf ${SRC_FILE} WORKDIR /nghttp2-${VERSION} RUN --network=none <