fix: rm node from dockerfile entrypoint (#3275)

This commit is contained in:
Bjerg
2023-06-20 21:21:43 +02:00
committed by GitHub
parent 0a752d741d
commit b1c77b396a
3 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,9 @@
FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef FROM lukemathwalker/cargo-chef:latest-rust-1 AS chef
WORKDIR app 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 # Builds a cargo-chef plan
FROM chef AS planner FROM chef AS planner
COPY . . COPY . .
@ -31,4 +34,4 @@ WORKDIR app
COPY --from=builder /app/target/release/reth /usr/local/bin COPY --from=builder /app/target/release/reth /usr/local/bin
EXPOSE 30303 30303/udp 9000 8545 8546 EXPOSE 30303 30303/udp 9000 8545 8546
ENTRYPOINT ["/usr/local/bin/reth", "node"] ENTRYPOINT ["/usr/local/bin/reth"]

View File

@ -3,10 +3,13 @@
# locatable in `./dist/bin/$TARGETARCH` # locatable in `./dist/bin/$TARGETARCH`
FROM --platform=$TARGETPLATFORM ubuntu:22.04 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 # Filled by docker buildx
ARG TARGETARCH ARG TARGETARCH
COPY ./dist/bin/$TARGETARCH/reth /usr/local/bin/reth COPY ./dist/bin/$TARGETARCH/reth /usr/local/bin/reth
EXPOSE 30303 30303/udp 9000 8545 8546 EXPOSE 30303 30303/udp 9000 8545 8546
ENTRYPOINT ["/usr/local/bin/reth", "node"] ENTRYPOINT ["/usr/local/bin/reth"]

View File

@ -27,7 +27,7 @@ docker pull ghcr.io/paradigmxyz/reth:v0.0.1
You can test the image with: You can test the image with:
```bash ```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. 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: The build will likely take several minutes. Once it's built, test it with:
```bash ```bash
docker run reth:local reth --version docker run reth:local --version
``` ```