Skip to content

Commit

Permalink
CI: Copy Cargo.lock into the build image to pin dependencies.
Browse files Browse the repository at this point in the history
Otherwise we're not testing what we expect.
  • Loading branch information
SamirTalwar committed Feb 12, 2024
1 parent db25c2c commit e495f57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,12 @@ RUN apt-get update \
ENV CARGO_HOME=/app/.cargo
ENV RUSTFLAGS="-C link-arg=-fuse-ld=lld"

COPY Cargo.lock .
COPY ./rust-connector-sdk .

RUN cargo build --release

FROM debian:buster-slim as connector
COPY --from=build /app/target/release/ndc_hub_example ./ndc_hub_example
ENTRYPOINT [ "/ndc_hub_example" ]
CMD [ "serve", "--port", "8080" ]
CMD [ "serve", "--port", "8080" ]

0 comments on commit e495f57

Please sign in to comment.