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
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue