docker: Further optimize multi-layered build.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-05-27 04:08:19 +00:00
parent 98bbf58121
commit 3ffc238799
7 changed files with 28 additions and 1 deletions

View File

@@ -22,6 +22,9 @@ ARG CARGO_HOME
ARG CARGO_TARGET
ARG CARGO_TERM_VERBOSE=0
WORKDIR /
COPY --link --from=input . .
WORKDIR /usr/src/tuwunel
COPY --link --from=source /usr/src/tuwunel .