mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-09-03 11:22:37 +02:00
get docker image down to 630mb
This commit is contained in:
@@ -35,13 +35,14 @@ cd blobs/sha256 || exit 1
|
||||
for LAYERFILE in ./*; do
|
||||
if [ -f "${LAYERFILE}" ]; then
|
||||
mv "${LAYERFILE}" "${LAYERFILE}.tar"
|
||||
tar -xzf "${LAYERFILE}.tar"
|
||||
mkdir -p "${LAYERFILE}"
|
||||
tar -xzf "${LAYERFILE}.tar" -C "${LAYERFILE}"
|
||||
rm "${LAYERFILE}.tar"
|
||||
echo "-----------------------------------------------------------------"
|
||||
echo "Contents of layer: ${LAYERFILE%/}"
|
||||
echo "-----------------------------------------------------------------"
|
||||
# List the files in the layer.tar without extracting
|
||||
tree -L 2
|
||||
tree -L 2 "${LAYERFILE}"
|
||||
echo
|
||||
fi
|
||||
done
|
||||
|
Reference in New Issue
Block a user