mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-01-03 01:15:57 +10: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