Fix cache build issue.
This commit is contained in:
parent
f730609f62
commit
47bcd0aa5f
1 changed files with 0 additions and 1 deletions
|
|
@ -45,7 +45,6 @@ COPY src ./src
|
||||||
RUN if grep -q 'cargo cache build' src/main.rs 2>/dev/null; then rm src/main.rs; fi
|
RUN if grep -q 'cargo cache build' src/main.rs 2>/dev/null; then rm src/main.rs; fi
|
||||||
RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \
|
RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=locked \
|
||||||
--mount=type=cache,target=/usr/local/cargo/git,sharing=locked \
|
--mount=type=cache,target=/usr/local/cargo/git,sharing=locked \
|
||||||
--mount=type=cache,target=/usr/src/app/target,sharing=locked \
|
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
|
||||||
# --- Stage 2: Final, small image ---
|
# --- Stage 2: Final, small image ---
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue