2023-02-01 08:37:15 +00:00
|
|
|
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
|
2024-06-18 07:53:56 +00:00
|
|
|
FROM rust:1.79.0-slim-bullseye AS builder
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
WORKDIR /nomos
|
|
|
|
COPY . .
|
|
|
|
|
2024-05-30 09:46:02 +00:00
|
|
|
# Install dependencies needed for building RocksDB.
|
|
|
|
RUN apt-get update && apt-get install -yq \
|
|
|
|
git clang libssl-dev pkg-config
|
|
|
|
|
2023-09-27 11:09:38 +00:00
|
|
|
RUN cargo build --release -p nomos-node
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
# NODE IMAGE ----------------------------------------------------------
|
|
|
|
|
|
|
|
FROM bitnami/minideb:latest
|
|
|
|
|
2023-09-15 14:27:38 +00:00
|
|
|
LABEL maintainer="augustinas@status.im" \
|
|
|
|
source="https://github.com/logos-co/nomos-node" \
|
|
|
|
description="Nomos node image"
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
# nomos default ports
|
|
|
|
EXPOSE 3000 8080 9000 60000
|
|
|
|
|
2023-06-21 10:02:56 +00:00
|
|
|
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
|
|
|
|
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["nomos-node"]
|