Files

28 lines
844 B
Docker
Raw Permalink Normal View History

2022-11-03 10:05:36 +01:00
FROM docker.io/rust:latest
2022-12-16 11:06:16 +01:00
RUN apt update && apt install --yes libpcsclite-dev \
&& wget https://github.com/arekinath/pivy/releases/download/v0.10.0/pivy-0.10.0-src.tar.gz \
&& tar xvf pivy-0.10.0-src.tar.gz \
&& cd pivy-0.10.0 \
&& make pivy-tool
FROM docker.io/rust:latest
RUN apt update && apt install --yes scdaemon libclang-dev llvm python3-pip vsmartcard-vpcd pkg-config nettle-dev libpcsclite-dev opensc
2022-11-03 10:05:36 +01:00
2022-11-08 10:39:39 +01:00
RUN python3 -m pip install reuse
2022-11-03 10:05:36 +01:00
RUN rustup component add clippy rustfmt && rustup target add thumbv7em-none-eabi
RUN cargo install cargo-tarpaulin --profile release && rm -rf "$CARGO_HOME"/registry
# initialize cargo cache
RUN cargo search
ENV CARGO_HOME=/app/.cache/cargo
2022-12-16 11:06:16 +01:00
COPY --from=0 pivy-0.10.0/pivy-tool /bin/pivy-tool
2022-11-03 10:05:36 +01:00
WORKDIR /app
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]