Skip to content

Commit

Permalink
fix: docker build COPY dest should be abspath (paradigmxyz#3425)
Browse files Browse the repository at this point in the history
Signed-off-by: jsvisa <[email protected]>
  • Loading branch information
jsvisa authored Jun 27, 2023
1 parent 1b13616 commit 6b7b89b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
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"
Expand Down Expand Up @@ -28,13 +28,13 @@ RUN cargo build --profile $BUILD_PROFILE --locked --bin reth

# Use Ubuntu as the release image
FROM ubuntu AS runtime
WORKDIR app
WORKDIR /app

# Copy reth over from the build stage
COPY --from=builder /app/target/release/reth /usr/local/bin

# Copy licenses
COPY LICENSE-* .
COPY LICENSE-* ./

EXPOSE 30303 30303/udp 9001 8545 8546
ENTRYPOINT ["/usr/local/bin/reth"]

0 comments on commit 6b7b89b

Please sign in to comment.