# SPDX-FileCopyrightText: 2023 Heiko Schaefer # SPDX-License-Identifier: CC0-1.0 FROM rust COPY --from=registry.gitlab.com/hkos/virtual-piv/pivapplet /start.sh / COPY --from=registry.gitlab.com/hkos/virtual-piv/pivapplet /PivApplet /PivApplet/ RUN apt update -y -qq \ && apt install -y -qq --no-install-recommends \ openjdk-17-jre vsmartcard-vpcd \ nettle-dev libclang-dev libpcsclite-dev softhsm2 opensc sq # Pull in and build project sources COPY . /build WORKDIR /build RUN cargo build RUN sh /start.sh >/dev/null \ && sh cli/ci/canokey/testrun.sh rsa2048 \ && sh cli/ci/canokey/testrun.sh nist-p256 \ && sh cli/ci/canokey/testrun.sh nist-p384 \