mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: docker build COPY dest should be abspath (#3425)
Signed-off-by: jsvisa <delweng@gmail.com>
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
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.source=https://github.com/paradigmxyz/reth
|
||||||
LABEL org.opencontainers.image.licenses="MIT OR Apache-2.0"
|
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
|
# Use Ubuntu as the release image
|
||||||
FROM ubuntu AS runtime
|
FROM ubuntu AS runtime
|
||||||
WORKDIR app
|
WORKDIR /app
|
||||||
|
|
||||||
# Copy reth over from the build stage
|
# Copy reth over from the build stage
|
||||||
COPY --from=builder /app/target/release/reth /usr/local/bin
|
COPY --from=builder /app/target/release/reth /usr/local/bin
|
||||||
|
|
||||||
# Copy licenses
|
# Copy licenses
|
||||||
COPY LICENSE-* .
|
COPY LICENSE-* ./
|
||||||
|
|
||||||
EXPOSE 30303 30303/udp 9001 8545 8546
|
EXPOSE 30303 30303/udp 9001 8545 8546
|
||||||
ENTRYPOINT ["/usr/local/bin/reth"]
|
ENTRYPOINT ["/usr/local/bin/reth"]
|
||||||
|
|||||||
Reference in New Issue
Block a user