Skip to content

Commit

Permalink
fix(docker): Use Cargo.lock for dependency pinning
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Feb 24, 2025
1 parent e0d4e3b commit 8249d3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --de

WORKDIR /trino-lb
COPY Cargo.toml Cargo.toml
COPY Cargo.lock Cargo.lock
COPY trino-lb trino-lb
COPY trino-lb-bench trino-lb-bench
COPY trino-lb-core trino-lb-core
COPY trino-lb-persistence trino-lb-persistence

# hadolint ignore=SC1091
RUN . "$HOME/.cargo/env" && cargo build --release --all-features
RUN . "$HOME/.cargo/env" && cargo build --locked --release --all-features

# Build final image
FROM debian:bookworm-slim
Expand Down

0 comments on commit 8249d3c

Please sign in to comment.