swtpm

Details
Source
FROM scratch AS build
ARG VERSION
COPY --from=stagex/core-busybox . /
COPY --from=stagex/core-binutils . /
COPY --from=stagex/core-musl . /
COPY --from=stagex/core-make . /
COPY --from=stagex/core-gcc . /
COPY --from=stagex/core-m4 . /
COPY --from=stagex/core-perl . /
COPY --from=stagex/core-autoconf . /
COPY --from=stagex/core-automake . /
COPY --from=stagex/core-pkgconf . /
COPY --from=stagex/core-libtool . /
COPY --from=stagex/core-openssl . /
COPY --from=stagex/core-libffi . /
COPY --from=stagex/core-zlib . /
COPY --from=stagex/core-pcre2 . /
COPY --from=stagex/core-gmp . /
COPY --from=stagex/core-bash . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/core-gawk . /
COPY --from=stagex/core-python . /
COPY --from=stagex/core-linux-headers . /
COPY --from=stagex/user-libtasn1 . /
COPY --from=stagex/user-libtpms . /
COPY --from=stagex/user-glib . /
COPY --from=stagex/user-json-glib . /
COPY --from=stagex/user-expect . /
COPY --from=stagex/user-socat . /
COPY --from=stagex/user-libseccomp . /
ADD fetch/swtpm-${VERSION}.tar.gz .
WORKDIR /swtpm-${VERSION}
RUN --network=none <<-EOF
	set -ex
	NOCONFIGURE=1 ./autogen.sh
	./configure \
		--prefix=/usr \
		--libdir=/usr/lib \
		--with-openssl \
		--with-tss-user=root \
		--with-tss-group=root
	make -j "$(nproc)"
	make DESTDIR="/rootfs" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /