2024-02-09 07:30:28 +00:00
|
|
|
FROM scratch as base
|
|
|
|
ENV SRC_VERSION=2.71
|
|
|
|
ENV SRC_HASH=f14c83cfebcc9427f2c3cea7258bd90df972d92eb26752da4ddad81c87a0faa4
|
|
|
|
ENV SRC_FILE=autoconf-${SRC_VERSION}.tar.xz
|
|
|
|
ENV SRC_SITE=https://ftp.gnu.org/gnu/autoconf/${SRC_FILE}
|
2023-12-12 17:45:39 +00:00
|
|
|
|
|
|
|
FROM base as fetch
|
2024-02-09 07:30:28 +00:00
|
|
|
ADD --checksum=sha256:${SRC_HASH} ${SRC_SITE} .
|
2023-12-12 17:45:39 +00:00
|
|
|
|
|
|
|
FROM fetch as build
|
2024-02-09 07:30:28 +00:00
|
|
|
COPY --from=busybox . /
|
|
|
|
COPY --from=gcc . /
|
|
|
|
COPY --from=binutils . /
|
|
|
|
COPY --from=make . /
|
|
|
|
COPY --from=musl . /
|
|
|
|
COPY --from=m4 . /
|
|
|
|
COPY --from=perl . /
|
2024-02-10 04:55:36 +00:00
|
|
|
RUN tar -xf ${SRC_FILE}
|
|
|
|
WORKDIR autoconf-${SRC_VERSION}
|
2023-12-05 04:34:07 +00:00
|
|
|
ENV M4=/usr/bin/m4
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN --network=none <<-EOF
|
|
|
|
set -eux
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr
|
|
|
|
make
|
|
|
|
EOF
|
2023-12-16 23:50:40 +00:00
|
|
|
|
|
|
|
from build as install
|
2024-02-09 07:30:28 +00:00
|
|
|
RUN --network=none make DESTDIR=/rootfs install
|
2024-02-09 18:19:36 +00:00
|
|
|
RUN find /rootfs -exec touch -hcd "@0" "{}" +
|
2023-12-05 04:34:07 +00:00
|
|
|
|
2023-12-12 17:45:39 +00:00
|
|
|
FROM scratch as package
|
2023-12-16 23:50:40 +00:00
|
|
|
COPY --from=install /rootfs /
|