-
Notifications
You must be signed in to change notification settings - Fork 18
/
Dockerfile
33 lines (22 loc) · 893 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
32
33
# BUILD IMAGE ---------------------------------------------------------
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
RUN cargo build --release -p nomos-node
# NODE IMAGE ----------------------------------------------------------
FROM bitnami/minideb:latest
LABEL maintainer="[email protected]" \
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"]