Skip to content

Commit

Permalink
fix: rm node from dockerfile entrypoint (paradigmxyz#3275)
Browse files Browse the repository at this point in the history
  • Loading branch information
onbjerg authored Jun 20, 2023
1 parent 0a752d7 commit b1c77b3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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 . .
Expand Down Expand Up @@ -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"]
5 changes: 4 additions & 1 deletion Dockerfile.cross
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
ENTRYPOINT ["/usr/local/bin/reth"]
4 changes: 2 additions & 2 deletions book/installation/docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
```

0 comments on commit b1c77b3

Please sign in to comment.