re-add distrust loopback repo

This commit is contained in:
Lance Vick 2024-03-05 13:55:40 -08:00
parent bd418c55d8
commit 30a1b46668
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 10 additions and 6 deletions

View File

@ -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