Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

chore: add cache mount for sccache #226

Merged
merged 1 commit into from
May 11, 2023
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
chore: add cache mount for sccache
foo0x29a authored and Freyskeyd committed May 11, 2023
commit 3a4ccdcea22b7aa809c3697be1233dbb074c107c
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -13,7 +13,9 @@ WORKDIR /usr/src/app
FROM base AS build
COPY . .
RUN --mount=type=secret,id=aws,target=/root/.aws/credentials \
cargo build --release --no-default-features --features=${FEATURES}
--mount=type=cache,id=sccache,target=/root/.cache/sccache \
cargo build --release --no-default-features --features=${FEATURES} \
&& sccache --show-stats

FROM debian:bullseye-slim AS topos