Skip to content

Commit

Permalink
fix: proper copy
Browse files Browse the repository at this point in the history
  • Loading branch information
KagChi committed Oct 27, 2024
1 parent 6c3d6a5 commit 8a22e88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gateway/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@ COPY ./gateway/Cargo.toml ./gateway/Cargo.lock ./
RUN mkdir src/
RUN echo 'fn main() {}' > ./src/main.rs

COPY ./models ./models

RUN source $HOME/.cargo/env && \
cargo build --release --target="$RUST_TARGET"

RUN rm -f target/$RUST_TARGET/release/deps/gateway*

COPY ./models ./models
COPY ./gateway/src ./src

RUN source $HOME/.cargo/env && \
Expand Down

0 comments on commit 8a22e88

Please sign in to comment.