diff --git a/packages/brotli/Containerfile b/packages/brotli/Containerfile index be02f79..ecd81e2 100644 --- a/packages/brotli/Containerfile +++ b/packages/brotli/Containerfile @@ -35,8 +35,13 @@ RUN --network=none <<-EOF EOF FROM build AS install -RUN DESTDIR=/rootfs cmake --install build -RUN find /rootfs -exec touch -hcd "@0" "{}" + +RUN <<-EOF + set -eux + DESTDIR=/rootfs cmake --install build + for file in common dec enc; do + install -D -m 755 build/libbrotli$file.a /rootfs/usr/lib/ + done +EOF FROM stagex/filesystem AS package COPY --from=install /rootfs/. / diff --git a/packages/c-ares/Containerfile b/packages/c-ares/Containerfile new file mode 100644 index 0000000..ab27305 --- /dev/null +++ b/packages/c-ares/Containerfile @@ -0,0 +1,35 @@ +FROM scratch AS base +ENV VERSION=1.33.1 +ENV SRC_HASH=06869824094745872fa26efd4c48e622b9bd82a89ef0ce693dc682a23604f415 +ENV SRC_FILE=c-ares-${VERSION}.tar.gz +ENV SRC_SITE=https://github.com/c-ares/c-ares/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 . / + +RUN --network=none tar -xf ${SRC_FILE} +WORKDIR c-ares-${VERSION} +RUN --network=none <