Correct Dockerfile caching

This commit is contained in:
Luke Parker
2023-07-22 01:12:39 -04:00
parent 79943c3a6c
commit 818215b570
3 changed files with 15 additions and 16 deletions

View File

@@ -17,7 +17,9 @@ ADD AGPL-3.0 /serai
WORKDIR /serai
# Mount the caches and build
RUN --mount=type=cache,target=/root/.cargo/ \
RUN --mount=type=cache,target=/root/.cargo \
--mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/serai/target \
cd processor && \
cargo build --release --all-features && \