solidity

Details
Source
FROM scratch AS build
ARG VERSION
ARG SOLIDITY_GIT_SHA
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-boost . /
COPY --from=stagex/core-ca-certificates . /
COPY --from=stagex/core-cmake . /
COPY --from=stagex/core-fmt . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-nlohmann-json . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/core-samurai . /
COPY --from=stagex/core-range-v3 . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-linux-headers . /
COPY --from=stagex/core-zlib . /
ADD fetch/v${VERSION}.tar.gz .
WORKDIR /solidity-${VERSION}
RUN <<-EOF
	set -eux
	mkdir /include
	echo $SOLIDITY_GIT_SHA > commit_hash.txt
	touch prerelease.txt
	cmake \
		-B build \
		-DIGNORE_VENDORED_DEPENDENCIES=ON \
		-DCMAKE_INSTALL_PREFIX=/usr/ \
		-DCMAKE_LIBRARY_PATH=/usr/lib/
		cmake --build build --parallel $(nproc)
	DESTDIR="/rootfs" cmake --install build
	install -Dm644 -t /rootfs/usr/share/licenses/solidity/ LICENSE.txt
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /