forked from eth-educators/eth-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reth binary build (eth-educators#1432)
- Loading branch information
1 parent
7b564af
commit a030619
Showing
2 changed files
with
36 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
ARG DOCKER_TAG | ||
FROM ghcr.io/paradigmxyz/reth:${DOCKER_TAG} | ||
|
||
# Unused, this is here to avoid build time complaints | ||
ARG BUILD_TARGET | ||
|
||
ARG USER=reth | ||
ARG UID=10001 | ||
|
||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC apt-get install -y --no-install-recommends \ | ||
ca-certificates \ | ||
tzdata \ | ||
gosu \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# See https://stackoverflow.com/a/55757473/12429735RUN | ||
RUN adduser \ | ||
--disabled-password \ | ||
--gecos "" \ | ||
--shell "/sbin/nologin" \ | ||
--uid "${UID}" \ | ||
"${USER}" | ||
|
||
RUN mkdir -p /var/lib/reth/ee-secret && chown -R ${USER}:${USER} /var/lib/reth && chmod -R 700 /var/lib/reth && chmod 777 /var/lib/reth/ee-secret | ||
|
||
# Cannot assume buildkit, hence no chmod | ||
COPY --chown=${USER}:${USER} ./docker-entrypoint.sh /usr/local/bin/ | ||
# Belt and suspenders | ||
RUN chmod -R 755 /usr/local/bin/* | ||
|
||
USER ${USER} | ||
|
||
ENTRYPOINT ["reth", "node"] |