34 lines
747 B
Docker
34 lines
747 B
Docker
FROM debian:bookworm
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt update && apt upgrade -y
|
|
RUN apt install -y apt-utils
|
|
RUN apt install -y libccid \
|
|
libpcsclite-dev \
|
|
git \
|
|
autoconf \
|
|
pkg-config \
|
|
libtool \
|
|
help2man \
|
|
automake \
|
|
gcc \
|
|
make \
|
|
build-essential \
|
|
opensc \
|
|
python3 \
|
|
python3-pip \
|
|
swig \
|
|
cmake \
|
|
libfuse-dev \
|
|
python3-pyscard \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN pip3 install pytest pycvc cryptography inputimeout fido2==2.0.0 --break-system-packages
|
|
WORKDIR /
|
|
RUN git clone https://github.com/frankmorgner/vsmartcard.git
|
|
WORKDIR /vsmartcard/virtualsmartcard
|
|
RUN autoreconf --verbose --install
|
|
RUN ./configure --sysconfdir=/etc
|
|
RUN make && make install
|
|
WORKDIR /
|