This commit is contained in:
2024-09-23 23:51:08 +08:00
parent efb424557d
commit 3175edfbc5
13 changed files with 827 additions and 2 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM rust
RUN apt-get update && apt-get install -y --no-install-recommends \
vsmartcard-vpcd libpcsclite-dev pcscd opensc git libclang-dev nettle-dev \
&& rm -rf /var/lib/apt/lists/*
RUN cargo install --features="vpicc" --git https://github.com/Nitrokey/opcard-rs#v1.3.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
RUN ./scripts/encrypt-decrypt.sh