forked from Zondax/namadexer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (19 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
30 lines (19 loc) · 713 Bytes
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
##### BUILDER #####
FROM rust:slim-bookworm as builder
WORKDIR /usr/src/namadexer
COPY . .
RUN apt-get update && apt-get install -y protobuf-compiler build-essential wget
RUN make download-checksum
RUN cargo install --path . -F prometheus
##### RUNNER #####
FROM debian:12-slim
LABEL author="Lola Rigaut-Luczak <lola@zondax.ch>"
WORKDIR /app
COPY --from=builder /usr/local/cargo/bin/server /usr/local/bin/server
COPY --from=builder /usr/local/cargo/bin/indexer /usr/local/bin/indexer
COPY --from=builder /usr/src/namadexer/checksums.json /app
RUN apt-get update && rm -rf /var/lib/apt/lists/*
# default env
ENV INDEXER_CONFIG_PATH "/app/config/Settings.toml"
ENV RUST_LOG "namadexer=debug"
CMD indexer