docker: Remove ./ pattern when packing an image
Elements in images tar.gz generated by docker don't start by './'.
This commit is contained in:
parent
94f0a6793b
commit
8a431e13b5
@ -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."
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user