Skip to content

Commit 77c533c

Browse files
authored
feat: tini (#115)
1 parent 8e1f186 commit 77c533c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ RUN cp /app/target/$BUILD_PROFILE/ev-reth /ev-reth
5454
FROM ubuntu:24.04 AS runtime
5555

5656
RUN apt-get update && \
57-
apt-get install -y ca-certificates curl jq libssl-dev pkg-config strace && \
57+
apt-get install -y ca-certificates curl jq libssl-dev pkg-config strace tini && \
5858
rm -rf /var/lib/apt/lists/*
5959

6060
WORKDIR /app
@@ -69,4 +69,4 @@ EXPOSE 30303 30303/udp 9001 8545 8546 7545 8551
6969
HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \
7070
CMD /usr/local/bin/ev-reth --version || exit 1
7171

72-
ENTRYPOINT ["/usr/local/bin/ev-reth"]
72+
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/ev-reth"]

Dockerfile.cross

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ ARG BUILDPLATFORM
99
# Copy the pre-built binary based on the target platform
1010
COPY dist/bin/${TARGETPLATFORM}/ev-reth /usr/local/bin/ev-reth
1111

12-
RUN apt-get update && apt-get install -y --no-install-recommends curl jq && rm -rf /var/lib/apt/lists/*
12+
RUN apt-get update && apt-get install -y --no-install-recommends curl jq tini && rm -rf /var/lib/apt/lists/*
1313

1414
# Expose default ports
1515
EXPOSE 8545 8546 30303 6060 9001
1616

1717
# Set the entrypoint
18-
ENTRYPOINT ["/usr/local/bin/ev-reth"]
18+
ENTRYPOINT ["/usr/bin/tini", "--", "/usr/local/bin/ev-reth"]

0 commit comments

Comments
 (0)