2023-09-15 14:27:38 +00:00
|
|
|
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
|
2024-03-01 11:28:05 +00:00
|
|
|
FROM rust:1.76.0-slim-bullseye AS builder
|
2023-09-15 14:27:38 +00:00
|
|
|
|
2023-10-02 08:41:08 +00:00
|
|
|
# Dependecies for publishing documentation.
|
2023-09-15 14:27:38 +00:00
|
|
|
RUN apt-get update && apt-get install -yq \
|
2023-10-16 11:06:40 +00:00
|
|
|
git clang etcd-client libssl-dev pkg-config
|
2023-09-15 14:27:38 +00:00
|
|
|
|
|
|
|
WORKDIR /nomos
|
|
|
|
COPY . .
|
|
|
|
|
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-01-30 08:04:11 +00:00
|
|
|
FROM bitnami/minideb:bullseye
|
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
|
|
|
|
EXPOSE 3000 8080 9000 60000
|
|
|
|
|
|
|
|
COPY --from=builder /nomos/target/release/nomos-node /usr/bin/nomos-node
|
2024-01-29 09:26:54 +00:00
|
|
|
COPY --from=builder /nomos/target/release/nomos-cli /usr/bin/nomos-cli
|
2023-09-15 14:27:38 +00:00
|
|
|
COPY --from=builder /usr/bin/etcdctl /usr/bin/etcdctl
|
|
|
|
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/nomos-node"]
|