re-add distrust loopback repo
This commit is contained in:
parent
bd418c55d8
commit
30a1b46668
|
@ -17,17 +17,21 @@ COPY --from=stagex/pkgconf . /
|
||||||
COPY --from=stagex/binutils . /
|
COPY --from=stagex/binutils . /
|
||||||
ADD . /src
|
ADD . /src
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
ADD <<-EOF /.cargo/config.toml
|
||||||
|
[registries.distrust]
|
||||||
|
index = "https://git.distrust.co/public/_cargo-index.git"
|
||||||
|
EOF
|
||||||
RUN cargo fetch
|
RUN cargo fetch
|
||||||
ENV NETTLE_STATIC=yes
|
ENV NETTLE_STATIC=yes
|
||||||
ENV PCSC_LIB_NAME=static=pcsclite
|
ENV PCSC_LIB_NAME=static=pcsclite
|
||||||
ENV RUSTFLAGS='-C codegen-units=1'
|
ENV RUSTFLAGS='-C codegen-units=1'
|
||||||
RUN --network=none \
|
RUN --network=none \
|
||||||
cargo build \
|
cargo build \
|
||||||
--frozen \
|
--frozen \
|
||||||
--release \
|
--release \
|
||||||
--features static \
|
--features static \
|
||||||
--target x86_64-unknown-linux-musl \
|
--target x86_64-unknown-linux-musl \
|
||||||
--bin keyfork
|
--bin keyfork
|
||||||
|
|
||||||
FROM scratch AS package
|
FROM scratch AS package
|
||||||
COPY --from=build keyfork/target/release/keyfork /keyfork
|
COPY --from=build keyfork/target/release/keyfork /keyfork
|
||||||
|
|
Loading…
Reference in New Issue