-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
15 lines (14 loc) · 673 Bytes
/
Copy pathDockerfile
File metadata and controls
15 lines (14 loc) · 673 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM rust
RUN apt-get update && apt-get install -y --no-install-recommends \
vsmartcard-vpcd libpcsclite-dev pcscd opensc git libclang-dev libdbus-1-dev nettle-dev pcsc-tools \
&& rm -rf /var/lib/apt/lists/*
RUN cargo install --features="vpicc" --git https://github.com/Nitrokey/opcard-rs --tag v1.7.0 --example vpicc opcard
RUN cargo install openpgp-card-tools rage
COPY Cargo.toml Cargo.lock README.md /app/
COPY src /app/src
WORKDIR /app/
RUN cargo install --path .
COPY scripts /app/scripts
# see: https://blog.apdu.fr/posts/2023/11/pcsc-lite-and-polkit/
RUN sh -c 'echo PCSCD_ARGS="--disable-polkit" > /etc/default/pcscd'
RUN ./scripts/encrypt-decrypt.sh