use --verbatim-files-from in dockerTools

https://www.gnu.org/software/tar/manual/html_node/files.html
files starting with - can be treated as command line options, which isn't desirable here
This commit is contained in:
divanorama
2021-09-10 19:12:32 +02:00
committed by GitHub
parent cc3184940f
commit b012fe5e7e
+1 -1
View File
@@ -636,7 +636,7 @@ rec {
<(sort -n layerFiles|uniq|grep -v ${layer}) -1 -3 > newFiles
# Append the new files to the layer.
tar -rpf temp/layer.tar --hard-dereference --sort=name --mtime="@$SOURCE_DATE_EPOCH" \
--owner=0 --group=0 --no-recursion --files-from newFiles
--owner=0 --group=0 --no-recursion --verbatim-files-from --files-from newFiles
echo "Adding meta..."