33 lines
864 B
Docker
33 lines
864 B
Docker
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
FROM rust:1.72.1-slim-bullseye AS builder
|
|
|
|
# Using backports for go 1.19
|
|
RUN echo 'deb http://deb.debian.org/debian bullseye-backports main' \
|
|
>> /etc/apt/sources.list
|
|
|
|
# Dependecies for publishing documentation.
|
|
RUN apt-get update && apt-get install -yq \
|
|
git clang
|
|
|
|
WORKDIR /nomos
|
|
COPY . .
|
|
|
|
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"]
|