fix incorrect cache files removal

This commit is contained in:
stone-w4tch3r
2024-07-29 05:38:50 +05:00
parent 70a12a8651
commit e5777251d9

View File

@@ -24,7 +24,7 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry \
cp -R /usr/local/cargo/git /cargo-cache/
# Ensure the content of /cargo-cache && clean unnecessary files
RUN ls -la /cargo-cache/registry && ls -la /cargo-cache/git && rm -rfd /cargo-cache/registry/cache
RUN ls -la /cargo-cache/registry && ls -la /cargo-cache/git && rm -rfd /cargo-cache/registry/src
# Main build stage
FROM rust:1.80-slim AS builder