Download Dataset_Construction/projects/libp2p/rust/protocols/perf/Dockerfile from SYSUSELab/RustRepoTrans: direct link, hf CLI and curl.
- Browser
- Download file 493 Bytes
-
https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Dataset_Construction/projects/libp2p/rust/protocols/perf/Dockerfile
- Command line
-
hf download hf://datasets/SYSUSELab/RustRepoTrans/Dataset_Construction/projects/libp2p/rust/protocols/perf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/datasets/SYSUSELab/RustRepoTrans/resolve/main/Dataset_Construction/projects/libp2p/rust/protocols/perf/Dockerfile
493 Bytes
| # syntax=docker/dockerfile:1.5-labs | |
| FROM rust:1.67.0 as builder | |
| # Run with access to the target cache to speed up builds | |
| WORKDIR /workspace | |
| ADD . . | |
| RUN --mount=type=cache,target=./target \ | |
| --mount=type=cache,target=/usr/local/cargo/registry \ | |
| cargo build --release --package libp2p-perf | |
| RUN --mount=type=cache,target=./target \ | |
| mv ./target/release/perf /usr/local/bin/perf | |
| FROM debian:bullseye-slim | |
| COPY --from=builder /usr/local/bin/perf /app/perf | |
| ENTRYPOINT [ "/app/perf" ] | |