mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
docker: Further optimize multi-layered build.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
98bbf58121
commit
3ffc238799
7 files changed
+28
-1
No files matched your search
@@ -8,6 +8,9 @@ ARG CARGO_TARGET
|
||||
ARG rustup_version="1.28.1"
|
||||
ARG rustup_components
|
||||
|
||||
WORKDIR /
|
||||
COPY --link --from=input . .
|
||||
|
||||
WORKDIR /opt
|
||||
RUN \
|
||||
--mount=type=cache,dst=${RUSTUP_HOME},sharing=locked \
|
||||
@@ -50,6 +53,9 @@ ARG CARGO_HOME
|
||||
ARG CARGO_TARGET
|
||||
ARG cargo_installs
|
||||
|
||||
WORKDIR /
|
||||
COPY --link --from=input . .
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,dst=${RUSTUP_HOME},sharing=locked \
|
||||
--mount=type=cache,dst=${CARGO_HOME},sharing=locked \
|
||||
|
||||
Reference in new issue
Block a user