From d9cbaf5abd22dc52be896c203ea0fdc53d76494f Mon Sep 17 00:00:00 2001 From: auricom <27022259+auricom@users.noreply.github.com> Date: Fri, 6 Feb 2026 17:03:03 +0100 Subject: [PATCH] feat: tini --- Dockerfile | 4 ++-- Dockerfile.cross | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index eef84bc..dbe8691 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,7 +54,7 @@ RUN cp /app/target/$BUILD_PROFILE/ev-reth /ev-reth FROM ubuntu:24.04 AS runtime RUN apt-get update && \ - apt-get install -y ca-certificates curl jq libssl-dev pkg-config strace && \ + apt-get install -y ca-certificates curl jq libssl-dev pkg-config strace tini && \ rm -rf /var/lib/apt/lists/* WORKDIR /app @@ -69,4 +69,4 @@ EXPOSE 30303 30303/udp 9001 8545 8546 7545 8551 HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ CMD /usr/local/bin/ev-reth --version || exit 1 -ENTRYPOINT ["/usr/local/bin/ev-reth"] +ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/ev-reth"] diff --git a/Dockerfile.cross b/Dockerfile.cross index fcc776f..8da0172 100644 --- a/Dockerfile.cross +++ b/Dockerfile.cross @@ -9,10 +9,10 @@ ARG BUILDPLATFORM # Copy the pre-built binary based on the target platform COPY dist/bin/${TARGETPLATFORM}/ev-reth /usr/local/bin/ev-reth -RUN apt-get update && apt-get install -y --no-install-recommends curl jq && rm -rf /var/lib/apt/lists/* +RUN apt-get update && apt-get install -y --no-install-recommends curl jq tini && rm -rf /var/lib/apt/lists/* # Expose default ports EXPOSE 8545 8546 30303 6060 9001 # Set the entrypoint -ENTRYPOINT ["/usr/local/bin/ev-reth"] +ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/ev-reth"]