generated from tangle-network/blueprint-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 908 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM rustlang/rust:nightly AS chef
RUN cargo install cargo-chef
WORKDIR /app
COPY Cargo.toml Cargo.lock ./
RUN cargo chef prepare --recipe-path recipe.json
RUN cargo chef cook --recipe-path recipe.json
COPY . .
RUN cargo build --release
FROM debian:bookworm-slim AS runtime
WORKDIR /app
COPY --from=chef /app/target/release/hyperlane-relayer-blueprint /usr/local/bin
LABEL org.opencontainers.image.authors="Serial <[email protected]>"
LABEL org.opencontainers.image.description="A Tangle Blueprint (AVS) for deploying Hyperlane validators"
LABEL org.opencontainers.image.source="https://github.com/tangle-network/hyperlane-relayer-blueprint"
LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0"
ENV RUST_LOG="gadget=info"
ENV BIND_ADDR="0.0.0.0"
ENV BIND_PORT=9632
ENV BLUEPRINT_ID=0
ENV SERVICE_ID=0
ENTRYPOINT ["/usr/local/bin/hyperlane-relayer-blueprint", "run"]