Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsJustIkenna committed Oct 31, 2024
1 parent b0e38e9 commit 645095b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"]

0 comments on commit 645095b

Please sign in to comment.