2023-09-15 14:27:38 +00:00
|
|
|
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
|
2024-10-19 15:17:22 +00:00
|
|
|
FROM rust:1.82.0-slim-bookworm AS builder
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
WORKDIR /nomos
|
|
|
|
COPY . .
|
|
|
|
|
2024-05-30 09:46:02 +00:00
|
|
|
# Install dependencies needed for building RocksDB and etcd.
|
|
|
|
RUN apt-get update && apt-get install -yq \
|
2024-10-02 11:26:39 +00:00
|
|
|
git gcc g++ clang libssl-dev \
|
2024-09-26 15:00:47 +00:00
|
|
|
pkg-config protobuf-compiler
|
2024-05-30 09:46:02 +00:00
|
|
|
|
2024-09-25 17:18:56 +00:00
|
|
|
RUN cargo install cargo-binstall
|
|
|
|
RUN cargo binstall -y cargo-risczero
|
|
|
|
RUN cargo risczero install
|
|
|
|
|
2024-01-23 16:16:33 +00:00
|
|
|
RUN cargo build --release --all --features metrics
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
# NODE IMAGE ----------------------------------------------------------
|
|
|
|
|
2024-10-02 11:26:39 +00:00
|
|
|
FROM bitnami/minideb:bookworm
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
LABEL maintainer="augustinas@status.im" \
|
|
|
|
source="https://github.com/logos-co/nomos-node" \
|
|
|
|
description="Nomos testnet image"
|
|
|
|
|
|
|
|
# nomos default ports
|
2024-10-02 11:26:39 +00:00
|
|
|
EXPOSE 3000 8080 9000 60000
|
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y libssl3
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
|
2024-10-22 09:36:06 +00:00
|
|
|
COPY --from=builder /nomos/target/release/nomos-executor /usr/bin/nomos-executor
|
2024-01-29 09:26:54 +00:00
|
|
|
COPY --from=builder /nomos/target/release/nomos-cli /usr/bin/nomos-cli
|
2024-10-02 11:26:39 +00:00
|
|
|
COPY --from=builder /nomos/target/release/cfgsync-server /usr/bin/cfgsync-server
|
|
|
|
COPY --from=builder /nomos/target/release/cfgsync-client /usr/bin/cfgsync-client
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/nomos-node"]
|