We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a687e7 commit aef51a0Copy full SHA for aef51a0
src/ci/docker/run.sh
@@ -50,7 +50,8 @@ if [ -f "$docker_dir/$image/Dockerfile" ]; then
50
# Look for all source files involves in the COPY command
51
copied_files=/tmp/.docker-copied-files.txt
52
rm -f "$copied_files"
53
- 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' \
54
+ "$docker_dir/$image/Dockerfile"); do
55
# List the file names
56
find "$script_dir/$i" -type f >> $copied_files
57
done
0 commit comments