stagex/packages/autoconf-archive/Containerfile

35 lines
909 B
Text
Raw Normal View History

2024-08-08 07:47:42 +00:00
FROM scratch AS base
2024-05-02 00:12:06 +00:00
ENV VERSION=2023.02.20
ENV SRC_HASH=71d4048479ae28f1f5794619c3d72df9c01df49b1c628ef85fde37596dc31a33
ENV SRC_FILE=autoconf-archive-${VERSION}.tar.xz
ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf-archive/${SRC_FILE}
2024-08-08 07:47:42 +00:00
FROM base AS fetch
2024-05-02 00:12:06 +00:00
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
2024-08-08 07:47:42 +00:00
FROM fetch AS build
2024-05-02 00:12:06 +00:00
COPY --from=stagex/busybox . /
#COPY --from=stagex/gcc . /
#COPY --from=stagex/binutils . /
COPY --from=stagex/make . /
COPY --from=stagex/musl . /
RUN tar -xf ${SRC_FILE}
2024-08-26 01:18:52 +00:00
WORKDIR /autoconf-archive-${VERSION}
2024-05-02 00:12:06 +00:00
RUN --network=none <<-EOF
set -eux
./configure \
--build=x86_64-linux-musl \
--host=x86_64-linux-musl \
--sysconfdir=/etc \
--localstatedir=/etc \
--mandir=/usr/share/man \
--prefix=/usr
make -j "$(nproc)"
EOF
2024-08-08 07:50:50 +00:00
FROM build AS install
2024-05-02 00:12:06 +00:00
RUN --network=none make DESTDIR=/rootfs install
2024-08-08 07:47:42 +00:00
FROM stagex/filesystem AS package
2024-05-02 00:12:06 +00:00
COPY --from=install /rootfs/. /