-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (21 loc) · 873 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/envio-hyperindex-blueprint /usr/local/bin
LABEL org.opencontainers.image.authors="Drew Stone <[email protected]>"
LABEL org.opencontainers.image.description="A Tangle Blueprint for running envio indexers"
LABEL org.opencontainers.image.source="https://github.com/tangle-network/envio-hyperindex-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/envio-hyperindex-blueprint", "run"]