Skip to content

Commit

Permalink
build: Disable incremental builds in docker image
Browse files Browse the repository at this point in the history
Swatinem/rust-cache#37
This now matches behavior of rust-cache and lowers disk usage
  • Loading branch information
JadedBlueEyes committed Jul 31, 2024
1 parent 2b947d1 commit 89db6c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ RUN rustc --version
COPY . .

ENV RUSTFLAGS='-C target-feature=+crt-static'
ENV CARGO_INCREMENTAL=0

RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/app/target \
Expand Down

0 comments on commit 89db6c2

Please sign in to comment.