Skip to content

Commit

Permalink
refactor: squash cache layer
Browse files Browse the repository at this point in the history
  • Loading branch information
KSmanis committed Aug 8, 2023
1 parent d260f9d commit 730c7b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# syntax=docker/dockerfile:1.2
FROM ksmanis/stage3:20230807@sha256:9b65a62d87c5a5d2074b5efb2baa3907337e3e4d39a6771cfa3963257055a45e AS distcc-builder
COPY --from=ksmanis/gentoo-distcc:tcp /var/cache/binpkgs /var/cache/binpkgs
RUN set -eux; \
RUN --mount=type=bind,from=ksmanis/gentoo-distcc:tcp,source=/var/cache/binpkgs,target=/cache \
set -eux; \
cp -a /cache/. /var/cache/binpkgs; \
export EMERGE_DEFAULT_OPTS="--buildpkg --color=y --quiet-build --tree --usepkg --verbose"; \
emerge-webrsync; \
emerge --info; \
Expand Down

0 comments on commit 730c7b9

Please sign in to comment.