-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
31 lines (22 loc) · 938 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
31
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/layerzero-dvn-blueprint-template /usr/local/bin
COPY --from=chef /app/docker/entrypoint.sh /usr/local/bin
RUN chmod +x /usr/local/bin/entrypoint.sh
LABEL org.opencontainers.image.authors="Drew Stone <[email protected]>"
LABEL org.opencontainers.image.description="A Tangle Blueprint specifying a LayerZero Decentralized Verifier Network (DVN)"
LABEL org.opencontainers.image.source="https://github.com/tangle-network/layerzero-dvn-blueprint-template"
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/entrypoint.sh"]