only touch files that can be touched in bootstrap

This commit is contained in:
Lance Vick 2023-12-18 11:47:39 -08:00
parent 9dc9d689ce
commit ed1c6e15ae
Signed by: lrvick
GPG Key ID: 8E47A1EC35A1551D
1 changed files with 10 additions and 1 deletions

View File

@ -4,6 +4,15 @@ FROM seed as fetch
RUN set -ex; \ RUN set -ex; \
apk update; \ apk update; \
apk add gcc g++ libc-dev make linux-headers patch 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 FROM fetch as package