Lock dockerfile cargo cache

This commit is contained in:
Book-reader 2025-09-05 14:20:42 +12:00
parent 430e0fce85
commit c39a425d48
6 changed files with 14 additions and 14 deletions

View file

@ -5,9 +5,9 @@ COPY asklyphe-auth-frontend asklyphe-auth-frontend
COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/asklyphe-auth-frontend/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path asklyphe-auth-frontend/
FROM debian:trixie-slim

View file

@ -6,14 +6,14 @@ COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/authservice/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path authservice/
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/authservice/migration/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path authservice/migration/
FROM debian:trixie-slim

View file

@ -5,9 +5,9 @@ COPY bingservice bingservice
COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/bingservice/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path bingservice/
FROM debian:trixie-slim

View file

@ -6,9 +6,9 @@ COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
COPY unit_converter unit_converter
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/asklyphe-frontend/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path asklyphe-frontend/
FROM debian:trixie-slim

View file

@ -5,9 +5,9 @@ COPY googleservice googleservice
COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/googleservice/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path googleservice/
FROM debian:trixie-slim

View file

@ -5,9 +5,9 @@ COPY vorebot vorebot
COPY asklyphe-common asklyphe-common
COPY lyphedb lyphedb
RUN --mount=type=cache,target=$CARGO_HOME/registry \
RUN --mount=type=cache,target=$CARGO_HOME/registry,sharing=locked \
--mount=type=cache,target=/usr/src/asklyphe/vorebot/target \
--mount=type=cache,target=$CARGO_HOME/git/db \
--mount=type=cache,target=$CARGO_HOME/git/db,sharing=locked \
cargo install --debug --path vorebot/
FROM debian:trixie-slim