# Built from the repository root: docker build -f crates/horizon-telemetry-server/Dockerfile . FROM rust:1-slim AS build WORKDIR /src # The root manifest only for the shared crate's workspace settings (edition, lints). COPY Cargo.toml Cargo.toml COPY crates/horizon-telemetry crates/horizon-telemetry COPY crates/horizon-telemetry-server crates/horizon-telemetry-server RUN cargo build --release --locked --manifest-path crates/horizon-telemetry-server/Cargo.toml FROM debian:stable-slim COPY --from=build /src/crates/horizon-telemetry-server/target/release/horizon-telemetry-server /usr/local/bin/ ENV HORIZON_TELEMETRY_DB=/data/telemetry.sqlite3 HORIZON_TELEMETRY_TRUST_PROXY=1 CMD ["horizon-telemetry-server"]