Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,11 @@ RUN RUST_TARGET="$(cat /rust_target)" \
# ── Full source build ──
COPY src ./src
COPY benches ./benches
RUN CARGO_INCREMENTAL=0 cargo build --release \
--target "$(cat /rust_target)"
# Touch main.rs to force cargo to re-link (the dep-cache step removes the
# binary and fingerprints, but cargo sometimes still skips recompilation).
RUN touch src/main.rs \
&& CARGO_INCREMENTAL=0 cargo build --release \
--target "$(cat /rust_target)"

# ── Copy binary to a fixed path so the runtime stage doesn't need TARGETARCH ──
RUN cp "target/$(cat /rust_target)/release/turbineproxy" /turbineproxy
Expand Down
Loading