Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Nimbus
# Copyright (c) 2024-2025 Status Research & Development GmbH
# Copyright (c) 2024-2026 Status Research & Development GmbH
# Licensed under either of
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
# http://www.apache.org/licenses/LICENSE-2.0)
Expand All @@ -13,15 +13,15 @@ FROM debian:trixie-slim AS build
SHELL ["/bin/bash", "-c"]

RUN apt-get clean && apt update \
&& apt -y install curl build-essential git-lfs librocksdb-dev
&& apt -y install curl build-essential git-lfs

RUN ldd --version

ADD . /root/nimbus-eth1

RUN cd /root/nimbus-eth1 \
&& make -j$(nproc) init \
&& make -j$(nproc) DISABLE_MARCH_NATIVE=1 V=1 nimbus_execution_client
&& make -j$(nproc) DISABLE_MARCH_NATIVE=1 V=1 nimbus

# --------------------------------- #
# Starting new image to reduce size #
Expand All @@ -30,17 +30,17 @@ FROM debian:trixie-slim AS deploy

SHELL ["/bin/bash", "-c"]
RUN apt-get clean && apt update \
&& apt -y install build-essential librocksdb-dev
&& apt -y install build-essential
RUN apt update && apt -y upgrade

RUN ldd --version

RUN rm -f /home/user/nimbus-eth1/build/nimbus_execution_client
RUN rm -f /home/user/nimbus-eth1/build/nimbus

COPY --from=build /root/nimbus-eth1/build/nimbus_execution_client /home/user/nimbus-eth1/build/nimbus_execution_client
COPY --from=build /root/nimbus-eth1/build/nimbus /home/user/nimbus-eth1/build/nimbus

ENV PATH="/home/user/nimbus-eth1/build:${PATH}"
ENTRYPOINT ["nimbus_execution_client"]
ENTRYPOINT ["nimbus"]
WORKDIR /home/user/nimbus-eth1/build

STOPSIGNAL SIGINT
Loading