Skip to content

Commit

Permalink
Rename project from kanari-network to kanari-sdk in Dockerfile and up…
Browse files Browse the repository at this point in the history
…date build commands accordingly
  • Loading branch information
jamesatomc committed Dec 15, 2024
1 parent 3d4dc78 commit eb8b2f7
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit eb8b2f7

Please sign in to comment.