stagex/packages/eudev/Containerfile

32 lines
826 B
Text
Raw Normal View History

2024-02-26 21:24:28 +00:00
FROM scratch AS base
ENV VERSION=3.2.14
ENV SRC_HASH=8da4319102f24abbf7fff5ce9c416af848df163b29590e666d334cc1927f006f
ENV SRC_FILE=eudev-${VERSION}.tar.gz
ENV SRC_SITE=https://github.com/eudev-project/eudev/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/linux-headers . /
COPY --from=stagex/make . /
COPY --from=stagex/gcc . /
COPY --from=stagex/gperf . /
RUN --network=none tar -xf ${SRC_FILE}
2024-08-26 01:18:52 +00:00
WORKDIR /eudev-${VERSION}
2024-02-26 21:24:28 +00:00
RUN --network=none <<EOF
2024-04-11 20:09:20 +00:00
set -eux
./configure
make -j "$(nproc)"
2024-02-26 21:24:28 +00:00
EOF
FROM build AS install
RUN --network=none DESTDIR=/rootfs make install
2024-03-09 04:03:35 +00:00
FROM stagex/filesystem AS package
COPY --from=install /rootfs/. /