From b1c77b396a12227e7339c449b69f50d574fb39f9 Mon Sep 17 00:00:00 2001 From: Bjerg Date: Tue, 20 Jun 2023 21:21:43 +0200 Subject: [PATCH] fix: rm `node` from dockerfile entrypoint (#3275) --- Dockerfile | 5 ++++- Dockerfile.cross | 5 ++++- book/installation/docker.md | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index edde758c6..46ce23954 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,9 @@ FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef WORKDIR app +LABEL org.opencontainers.image.source=https://github.com/paradigmxyz/reth +LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0" + # Builds a cargo-chef plan FROM chef AS planner COPY . . @@ -31,4 +34,4 @@ WORKDIR app COPY --from=builder /app/target/release/reth /usr/local/bin EXPOSE 30303 30303/udp 9000 8545 8546 -ENTRYPOINT ["/usr/local/bin/reth", "node"] +ENTRYPOINT ["/usr/local/bin/reth"] diff --git a/Dockerfile.cross b/Dockerfile.cross index 1c34aa01f..64e5c7c02 100644 --- a/Dockerfile.cross +++ b/Dockerfile.cross @@ -3,10 +3,13 @@ # locatable in `./dist/bin/$TARGETARCH` FROM --platform=$TARGETPLATFORM ubuntu:22.04 +LABEL org.opencontainers.image.source=https://github.com/paradigmxyz/reth +LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0" + # Filled by docker buildx ARG TARGETARCH COPY ./dist/bin/$TARGETARCH/reth /usr/local/bin/reth EXPOSE 30303 30303/udp 9000 8545 8546 -ENTRYPOINT ["/usr/local/bin/reth", "node"] \ No newline at end of file +ENTRYPOINT ["/usr/local/bin/reth"] diff --git a/book/installation/docker.md b/book/installation/docker.md index 6fc29fd1f..936e226c6 100644 --- a/book/installation/docker.md +++ b/book/installation/docker.md @@ -27,7 +27,7 @@ docker pull ghcr.io/paradigmxyz/reth:v0.0.1 You can test the image with: ```bash -docker run --rm ghcr.io/paradigmxyz/reth reth --version +docker run --rm ghcr.io/paradigmxyz/reth --version ``` If you can see the latest [Reth release](https://github.com/paradigmxyz/reth/releases) version, then you've successfully installed Reth via Docker. @@ -43,5 +43,5 @@ docker build . -t reth:local The build will likely take several minutes. Once it's built, test it with: ```bash -docker run reth:local reth --version +docker run reth:local --version ```