docker: Reduce more copies.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-05-30 22:44:05 +00:00
parent 288c49c436
commit 2be61de70f
4 changed files with 13 additions and 4 deletions

View File

@@ -5,6 +5,9 @@ ARG var_cache
ARG var_lib_apt
ARG packages
WORKDIR /
COPY --link --from=input . .
ENV packages="\
bzip2 \
ca-certificates \
@@ -21,9 +24,6 @@ xz-utils \
${packages} \
"
WORKDIR /
COPY --link --from=input . .
RUN \
--mount=type=cache,dst=${var_cache},sharing=locked \
--mount=type=cache,dst=${var_lib_apt},sharing=locked \