diff --git a/Dockerfile b/Dockerfile index f428b79..39d6239 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,3 +10,21 @@ COPY --from=gcc / / COPY --from=make / / COPY --from=musl / / COPY --from=busybox / / + +FROM bootstrap-c-toolchain AS build-make + +RUN wget https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz -O make.tar.gz + +RUN tar -xzf make.tar.gz --strip-components=1 && \ + mkdir build && \ + cd build && \ + ../configure --prefix=/usr --without-guile + +RUN cd build && \ + make -j$(nproc) + +RUN cd build && \ + make DESTDIR=/rootfs install + +FROM bootstrap-c-toolchain AS final +COPY --from=build-make /rootfs/ /