mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-12 21:34:33 +00:00
23fa3b8e1e
* logs summarized * fix copyright year * add topics for logs * fix copyright year * bring syncer logs to info & debug level * fix debug dockerfile * fix: copyright error * shift txpool logs to debug and introduce logs in rpc * after header bring block download to info level * comments for finalization summary of logs * change literals to meaningful names * remove unwanted data from userfacing logs * include target logs * remove control * fix capitalization * complete txpool
38 lines
1.5 KiB
Docker
38 lines
1.5 KiB
Docker
# Nimbus
|
|
# Copyright (c) 2023-2025 Status Research & Development GmbH
|
|
# Licensed and distributed under either of
|
|
# * MIT license (license terms in the root directory or at https://opensource.org/licenses/MIT).
|
|
# * Apache v2 license (license terms in the root directory or at https://www.apache.org/licenses/LICENSE-2.0).
|
|
# at your option. This file may not be copied, modified, or distributed except according to those terms.
|
|
|
|
FROM debian:stable-slim AS build
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive TZ="Etc/UTC"
|
|
ENV NPROC=8
|
|
ENV NIMFLAGS_COMMON="-d:disableMarchNative --gcc.options.debug:'-g1' --clang.options.debug:'-gline-tables-only'"
|
|
|
|
RUN apt update \
|
|
&& apt install make bash build-essential curl git -y
|
|
|
|
COPY ./ /nimbus-eth1
|
|
|
|
WORKDIR /nimbus-eth1
|
|
|
|
RUN mv vendor vendor.orig
|
|
|
|
RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nimbus-eth1/vendor \
|
|
mv vendor.orig vendor && \
|
|
make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" V=1 update
|
|
|
|
RUN --mount=type=cache,target=/nimbus-eth1/build --mount=type=cache,target=/nimbus-eth1/vendor \
|
|
make -j${NPROC} NIMFLAGS="${NIMFLAGS_COMMON} --parallelBuild:${NPROC}" nimbus_execution_client && \
|
|
mv build/nimbus_execution_client /usr/local/bin/nimbus_execution_client
|
|
|
|
# --------------------------------- #
|
|
# Starting new image to reduce size #
|
|
# --------------------------------- #
|
|
FROM debian:stable-slim AS deploy
|
|
COPY --from=build /usr/local/bin/nimbus_execution_client /usr/local/bin/nimbus_execution_client
|
|
|
|
ENTRYPOINT ["/usr/local/bin/nimbus_execution_client"]
|