mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Ignore files copied from previous stage when generating hash.
This commit is contained in:
parent
3a687e7510
commit
aef51a0697
@ -50,7 +50,8 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
|
||||
# Look for all source files involves in the COPY command
|
||||
copied_files=/tmp/.docker-copied-files.txt
|
||||
rm -f "$copied_files"
|
||||
for i in $(sed -n -e 's/^COPY \(.*\) .*$/\1/p' "$docker_dir/$image/Dockerfile"); do
|
||||
for i in $(sed -n -e '/^COPY --from=/! s/^COPY \(.*\) .*$/\1/p' \
|
||||
"$docker_dir/$image/Dockerfile"); do
|
||||
# List the file names
|
||||
find "$script_dir/$i" -type f >> $copied_files
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user