From ed1c6e15aec18026de1c7236c4540e081894e557 Mon Sep 17 00:00:00 2001 From: "Lance R. Vick" Date: Mon, 18 Dec 2023 11:47:39 -0800 Subject: [PATCH] only touch files that can be touched in bootstrap --- src/bootstrap/bootstrap/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/bootstrap/Dockerfile b/src/bootstrap/bootstrap/Dockerfile index f515476..b0512d7 100644 --- a/src/bootstrap/bootstrap/Dockerfile +++ b/src/bootstrap/bootstrap/Dockerfile @@ -4,6 +4,15 @@ FROM seed as fetch RUN set -ex; \ apk update; \ apk add gcc g++ libc-dev make linux-headers patch -RUN find / -exec touch -hcd "@0" "{}" + +RUN find / \ + \( -name sys \ + -o -name proc \ + -o -name dev \ + -o -path /etc/resolv.conf \ + -o -path /etc/hosts \ + \) \ + -prune \ + -o -type f \ + -exec touch -hcd "@0" "{}" + FROM fetch as package