From 30a1b466689da4871d26e7d4a34113a394ed3e0d Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Tue, 5 Mar 2024 13:55:40 -0800 Subject: [PATCH] re-add distrust loopback repo --- Containerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Containerfile b/Containerfile index 9c85bee..e9088b2 100644 --- a/Containerfile +++ b/Containerfile @@ -17,17 +17,21 @@ COPY --from=stagex/pkgconf . / COPY --from=stagex/binutils . / ADD . /src WORKDIR /src +ADD <<-EOF /.cargo/config.toml + [registries.distrust] + index = "https://git.distrust.co/public/_cargo-index.git" +EOF RUN cargo fetch ENV NETTLE_STATIC=yes ENV PCSC_LIB_NAME=static=pcsclite ENV RUSTFLAGS='-C codegen-units=1' RUN --network=none \ - cargo build \ - --frozen \ - --release \ - --features static \ - --target x86_64-unknown-linux-musl \ - --bin keyfork + cargo build \ + --frozen \ + --release \ + --features static \ + --target x86_64-unknown-linux-musl \ + --bin keyfork FROM scratch AS package COPY --from=build keyfork/target/release/keyfork /keyfork