mirror of
https://github.com/logos-co/nomos-node.git
synced 2026-08-31 03:21:15 +00:00
43 lines
1.3 KiB
Docker
43 lines
1.3 KiB
Docker
# syntax=docker/dockerfile:1
|
|
# check=skip=SecretsUsedInArgOrEnv
|
|
# Ignore warnings about sensitive information as this is test data.
|
|
|
|
# ===========================
|
|
# BUILD IMAGE
|
|
# ===========================
|
|
FROM rust:1.98.0-slim-bookworm AS builder
|
|
|
|
WORKDIR /logos-blockchain
|
|
COPY . .
|
|
|
|
# Install dependencies needed for building RocksDB.
|
|
RUN apt-get update && apt-get install -yq \
|
|
build-essential git clang libssl-dev pkg-config ca-certificates curl unzip
|
|
|
|
# Build Rust Binaries
|
|
RUN cargo build --locked --release
|
|
|
|
# ===========================
|
|
# NODE IMAGE
|
|
# ===========================
|
|
FROM debian:bookworm-slim
|
|
|
|
LABEL maintainer="augustinas@status.im" \
|
|
source="https://github.com/logos-blockchain/logos-blockchain" \
|
|
description="Logos Blockchain node and other binaries image"
|
|
|
|
RUN apt-get update && apt-get install -yq \
|
|
libstdc++6 libssl3 ca-certificates \
|
|
python3 python3-pip curl git \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Copy Binaries
|
|
COPY --from=builder /logos-blockchain/target/release/logos-blockchain-node /usr/bin/
|
|
COPY --from=builder /logos-blockchain/target/release/logos-blockchain-faucet /usr/bin/
|
|
|
|
# Copy Scripts
|
|
COPY --from=builder /logos-blockchain/deployment/scripts /opt/scripts
|
|
|
|
EXPOSE 80 3000 8000 8080 8090 9000 18080 60000
|
|
ENTRYPOINT ["/usr/bin/logos-blockchain-node"]
|