stagex/packages/e2fsprogs/Containerfile

44 lines
1.1 KiB
Text
Raw Normal View History

2024-08-08 07:47:42 +00:00
FROM scratch AS base
2024-03-21 00:24:00 +00:00
ARG ARCH=x86_64
2024-10-08 23:43:30 +00:00
ENV VERSION=1.47.1
ENV SRC_HASH=db95ff1cb6ef741c9aa8875d9f3f52a34168360febba765b6377b80bada09a8c
2024-03-21 00:24:00 +00:00
ENV SRC_FILE=v${VERSION}.tar.gz
ENV SRC_SITE=https://github.com/tytso/e2fsprogs/archive/${SRC_FILE}
2024-08-08 07:47:42 +00:00
FROM base AS fetch
2024-03-21 00:24:00 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-08-08 07:47:42 +00:00
FROM fetch AS build
2024-03-21 00:24:00 +00:00
COPY --from=stagex/bash . /
COPY --from=stagex/binutils . /
COPY --from=stagex/pkgconf . /
COPY --from=stagex/busybox . /
COPY --from=stagex/make . /
COPY --from=stagex/linux-headers . /
COPY --from=stagex/util-linux . /
COPY --from=stagex/musl . /
COPY --from=stagex/gcc . /
RUN tar -xzf ${SRC_FILE}
2024-08-26 01:18:52 +00:00
WORKDIR /e2fsprogs-${VERSION}
2024-03-21 00:24:00 +00:00
RUN --network=none <<-EOF
./configure \
--build=${ARCH}-linux-musl \
--host=${ARCH}-linux-musl \
--prefix=/usr \
--mandir=/usr/share/man \
--enable-elf-shlibs \
--enable-symlink-install \
--disable-fsck \
--disable-uuidd \
--disable-libuuid \
--disable-libblkid \
--disable-nls
make -j "$(nproc)"
EOF
2024-08-08 07:47:42 +00:00
FROM build AS install
2024-04-11 20:09:20 +00:00
RUN make DESTDIR=/rootfs install
2024-03-21 00:24:00 +00:00
2024-08-08 07:47:42 +00:00
FROM stagex/filesystem AS package
2024-03-21 00:24:00 +00:00
COPY --from=install /rootfs/. /