2024-08-08 07:47:42 +00:00
|
|
|
FROM scratch AS base
|
2024-02-09 07:30:28 +00:00
|
|
|
ENV VERSION=4.4
|
|
|
|
ENV SRC_FILE=make-${VERSION}.tar.gz
|
|
|
|
ENV SRC_SITE=https://ftp.gnu.org/gnu/make/${SRC_FILE}
|
|
|
|
ENV SRC_HASH=581f4d4e872da74b3941c874215898a7d35802f03732bdccee1d4a7979105d18
|
2023-11-16 10:01:19 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM base AS fetch
|
2024-02-09 11:23:22 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
2023-12-16 23:50:40 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM fetch AS build
|
2024-02-15 15:22:38 +00:00
|
|
|
COPY --from=stagex/stage3 . /
|
2024-02-10 03:33:00 +00:00
|
|
|
RUN tar -xf ${SRC_FILE}
|
|
|
|
WORKDIR make-${VERSION}
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN --network=none <<-EOF
|
|
|
|
set -eux
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--disable-nls
|
2024-03-14 07:16:26 +00:00
|
|
|
make -j "$(nproc)"
|
2024-02-09 07:30:28 +00:00
|
|
|
EOF
|
2023-12-16 23:50:40 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM build AS install
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN --network=none make DESTDIR="/rootfs" install
|
2023-11-16 10:01:19 +00:00
|
|
|
|
2024-08-08 07:47:42 +00:00
|
|
|
FROM stagex/filesystem AS package
|
2024-03-01 18:30:23 +00:00
|
|
|
COPY --from=install /rootfs/. /
|