diff --git a/Dockerfile b/Dockerfile index 4407f95..a6216d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,27 +2,22 @@ FROM rust:1.82 as builder # Create a new empty shell project -RUN USER=root cargo new --bin kanari-network -WORKDIR /kanari-network +RUN USER=root cargo new --bin kanari-sdk +WORKDIR /kanari-sdk # Copy your project's files into the Docker container COPY Cargo.toml Cargo.lock ./ -COPY src src COPY consensus consensus -COPY p2p p2p COPY crates crates -COPY kari kari -COPY kari-explorer kari-explorer COPY move-execution move-execution -COPY node node + # Build your project RUN cargo build --release # Start a new stage to reduce the size of the final image -# by not including the build tools and intermediate build artifacts FROM debian:buster-slim -COPY --from=builder /kanari-network/target/release/kanari-network /usr/local/bin/kanari-network +COPY --from=builder /kanari-sdk/target/release/kanari-sdk /usr/local/bin/kanari-sdk # Set the command to run your application -CMD ["kanari-network"] +CMD ["kanari-sdk"]