2023-02-01 08:37:15 +00:00
|
|
|
# BUILD IMAGE ---------------------------------------------------------
|
|
|
|
|
2023-06-19 15:03:54 +00:00
|
|
|
FROM rust:1.70.0-slim-bullseye AS builder
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
# 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 and building waku-bindings.
|
|
|
|
RUN apt-get update && apt-get install -yq \
|
|
|
|
git clang \
|
|
|
|
golang-src/bullseye-backports \
|
|
|
|
golang-doc/bullseye-backports \
|
|
|
|
golang/bullseye-backports
|
|
|
|
|
|
|
|
WORKDIR /nomos
|
|
|
|
COPY . .
|
|
|
|
|
2023-06-21 10:02:56 +00:00
|
|
|
RUN cargo build --release -p nomos-node
|
2023-02-01 08:37:15 +00:00
|
|
|
|
|
|
|
# NODE IMAGE ----------------------------------------------------------
|
|
|
|
|
|
|
|
FROM bitnami/minideb:latest
|
|
|
|
|
|
|
|
LABEL maintainer="augustinas@status.im"
|
|
|
|
LABEL source="https://github.com/logos-co/nomos-research"
|
|
|
|
LABEL description="Nomos node image"
|
|
|
|
|
|
|
|
# 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"]
|