nomos-node/Dockerfile

34 lines
893 B
Docker
Raw Normal View History

# BUILD IMAGE ---------------------------------------------------------
2024-10-19 15:17:22 +00:00
FROM rust:1.82.0-slim-bookworm AS builder
WORKDIR /nomos
COPY . .
# Install dependencies needed for building RocksDB.
RUN apt-get update && apt-get install -yq \
git gcc g++ clang libssl-dev pkg-config \
protobuf-compiler
RUN cargo install cargo-binstall
RUN cargo binstall -y cargo-risczero
RUN cargo risczero install
2023-09-27 11:09:38 +00:00
RUN cargo build --release -p nomos-node
# NODE IMAGE ----------------------------------------------------------
FROM bitnami/minideb:latest
LABEL maintainer="augustinas@status.im" \
source="https://github.com/logos-co/nomos-node" \
description="Nomos node image"
# nomos default ports
EXPOSE 3000 8080 9000 60000
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
ENTRYPOINT ["nomos-node"]