docker: Remove ./ pattern when packing an image

Elements in images tar.gz generated by docker don't start by './'.
This commit is contained in:
Antoine Eiche 2017-07-26 21:49:35 +02:00 committed by Robin Gloster
parent 94f0a6793b
commit 8a431e13b5

View File

@ -505,7 +505,7 @@ rec {
chmod -R a-w image
echo "Cooking the image..."
tar -C image --mtime="@$SOURCE_DATE_EPOCH" --owner=0 --group=0 -c . | pigz -nT > $out
tar -C image --mtime="@$SOURCE_DATE_EPOCH" --owner=0 --group=0 --xform s:'./':: -c . | pigz -nT > $out
echo "Finished."
'';