swtpm
Source
FROM stagex/pallet-clang-gnu-busybox AS build
ARG VERSION
COPY --from=stagex/core-openssl . /
COPY --from=stagex/core-pcre2 . /
COPY --from=stagex/core-gmp . /
COPY --from=stagex/core-ncurses . /
COPY --from=stagex/core-bash . /
COPY --from=stagex/core-gettext . /
COPY --from=stagex/core-gawk . /
COPY --from=stagex/core-python . /
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-socat . /
COPY --from=stagex/user-libseccomp . /
ADD fetch/swtpm-${VERSION}.tar.gz .
WORKDIR /swtpm-${VERSION}
ADD patches/*.patch .
RUN --network=none <<-EOF
patch -p1 < no-expect.patch
NOCONFIGURE=1 ./autogen.sh
./configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-openssl \
--with-tss-user=root \
--with-tss-group=root
make
make DESTDIR="/rootfs" install
EOF
FROM stagex/core-filesystem AS package
COPY --from=build /rootfs/ /Copied to clipboard!