Files
tlsn/crates/harness/harness.Dockerfile
Hendrik Eeckhaut 2d399d5e24 chore: Update latency/bandwidth plots for new harness (#923)
* Updated latency/bandwidth plots for new harness
* Fix harness Docker build
2025-07-23 10:58:46 +02:00

33 lines
790 B
Docker

FROM rust AS builder
WORKDIR /usr/src/tlsn
RUN \
rustup update; \
apt update && apt install -y clang; \
rustup install nightly; \
rustup component add rust-src --toolchain nightly; \
cargo install --git https://github.com/rustwasm/wasm-pack.git --rev 32e52ca;
COPY . .
RUN \
cd crates/harness; \
./build.sh;
FROM debian:latest
RUN apt update && apt upgrade -y && apt install -y --no-install-recommends \
chromium \
iproute2 \
sudo \
procps \
iptables; \
apt clean && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/src/tlsn/crates/harness/bin/ /usr/local/bin/
COPY --from=builder /usr/src/tlsn/crates/harness/static /static
# RUN /usr/local/bin/runner setup
VOLUME [ "/benches" ]
WORKDIR "/benches"
# CMD ["/usr/local/bin/runner", "test"]