nomos-node/testnet/Dockerfile

38 lines
1.1 KiB
Docker
Raw Normal View History

# BUILD IMAGE ---------------------------------------------------------
2023-09-28 12:37:09 +00:00
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
2023-10-02 08:41:08 +00:00
# Dependecies for publishing documentation.
RUN apt-get update && apt-get install -yq \
2023-09-28 12:37:09 +00:00
git clang etcd-client libssl-dev \
golang-src/bullseye-backports \
golang-doc/bullseye-backports \
golang/bullseye-backports
WORKDIR /nomos
COPY . .
2023-09-28 12:37:09 +00:00
RUN cargo build --release --all
# NODE IMAGE ----------------------------------------------------------
FROM bitnami/minideb:latest
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
COPY --from=builder /nomos/target/release/mixnode /usr/bin/mixnode
COPY --from=builder /usr/bin/etcdctl /usr/bin/etcdctl
COPY nodes/nomos-node/config.yaml /etc/nomos/config.yaml
ENTRYPOINT ["/usr/bin/nomos-node"]