forked from asklyphe-public/asklyphe
Finally, build caching
This commit is contained in:
parent
3ed54bf7e8
commit
7fbe876c54
6 changed files with 30 additions and 7 deletions
|
@ -5,7 +5,10 @@ COPY asklyphe-auth-frontend asklyphe-auth-frontend
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
|
|
||||||
RUN cargo install --debug --path asklyphe-auth-frontend/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/asklyphe-auth-frontend/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path asklyphe-auth-frontend/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
|
@ -5,8 +5,16 @@ COPY authservice authservice
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
|
|
||||||
RUN cargo install --debug --path authservice/
|
|
||||||
RUN cargo install --debug --path authservice/migration/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/authservice/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path authservice/
|
||||||
|
|
||||||
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/authservice/migration/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path authservice/migration/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
|
@ -5,7 +5,10 @@ COPY bingservice bingservice
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
|
|
||||||
RUN cargo install --debug --path bingservice/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/bingservice/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path bingservice/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
|
@ -6,7 +6,10 @@ COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
COPY unit_converter unit_converter
|
COPY unit_converter unit_converter
|
||||||
|
|
||||||
RUN cargo install --debug --path asklyphe-frontend/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/asklyphe-frontend/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path asklyphe-frontend/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
|
@ -5,7 +5,10 @@ COPY googleservice googleservice
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
|
|
||||||
RUN cargo install --debug --path googleservice/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/googleservice/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path googleservice/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
|
@ -5,7 +5,10 @@ COPY vorebot vorebot
|
||||||
COPY asklyphe-common asklyphe-common
|
COPY asklyphe-common asklyphe-common
|
||||||
COPY lyphedb lyphedb
|
COPY lyphedb lyphedb
|
||||||
|
|
||||||
RUN cargo install --debug --path vorebot/
|
RUN --mount=type=cache,target=$CARGO_HOME/registry \
|
||||||
|
--mount=type=cache,target=/usr/src/asklyphe/vorebot/target \
|
||||||
|
--mount=type=cache,target=$CARGO_HOME/git/db \
|
||||||
|
cargo install --debug --path vorebot/
|
||||||
|
|
||||||
FROM debian:trixie-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
RUN apt-get update && apt-get upgrade -y && apt-get install -y libssl3 && rm -rf /var/lib/apt-get/lists/*
|
||||||
|
|
Loading…
Add table
Reference in a new issue