1
0
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:
Nick Sweeting
2024-12-18 05:03:52 -08:00
parent 54d4d7f640
commit 839016b4b1
2 changed files with 19 additions and 18 deletions

View File

@@ -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