forked from asklyphe-public/asklyphe
Lock dockerfile cargo cache
This commit is contained in:
parent
430e0fce85
commit
c39a425d48
6 changed files with 14 additions and 14 deletions
|
@ -5,9 +5,9 @@ COPY asklyphe-auth-frontend asklyphe-auth-frontend
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
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=/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/
|
cargo install --debug --path asklyphe-auth-frontend/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
@ -6,14 +6,14 @@ COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
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=/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/
|
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=/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/
|
cargo install --debug --path authservice/migration/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
@ -5,9 +5,9 @@ COPY bingservice bingservice
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
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=/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/
|
cargo install --debug --path bingservice/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
@ -6,9 +6,9 @@ COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
COPY unit_converter unit_converter
|
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=/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/
|
cargo install --debug --path asklyphe-frontend/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
@ -5,9 +5,9 @@ COPY googleservice googleservice
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
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=/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/
|
cargo install --debug --path googleservice/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
|
@ -5,9 +5,9 @@ COPY vorebot vorebot
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
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=/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/
|
cargo install --debug --path vorebot/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
|
|
Loading…
Add table
Reference in a new issue