From 6b7b89bc68a322691b7d47e936b605e0ec5c2efd Mon Sep 17 00:00:00 2001 From: Delweng Date: Wed, 28 Jun 2023 03:11:27 +0800 Subject: [PATCH] fix: docker build COPY dest should be abspath (#3425) Signed-off-by: jsvisa --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 47dd30adb..dd35ce2d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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" @@ -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"]