From 645095b0060d076885aaf6037ebff26e68372765 Mon Sep 17 00:00:00 2001 From: Ikenna Nwagbara Date: Wed, 30 Oct 2024 22:23:32 -0400 Subject: [PATCH] Update Dockerfile --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 29e4547..b40df56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,12 +6,15 @@ WORKDIR /usr/src/dataengine # Copy the Cargo files separately for dependency caching COPY Cargo.toml Cargo.lock ./ +COPY hostbuilder/Cargo.toml hostbuilder/ # Fetch dependencies RUN cargo fetch -# Copy the rest of the project files -COPY . . +# Copy only necessary files +COPY src ./src +COPY hostbuilder ./hostbuilder +COPY program ./program # Build the main module RUN cargo build --release --manifest-path=program/Cargo.toml @@ -20,4 +23,4 @@ RUN cargo build --release --manifest-path=program/Cargo.toml EXPOSE 12345 # Run the main application binary -CMD ["./target/release/program"] +CMD ["./target/release/program"] \ No newline at end of file