diff --git a/Dockerfile b/Dockerfile index c8fd8ac..182d520 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,8 @@ RUN apt-get update && \ python3.9 \ python3.9-dev \ python3-cffi \ - python3-pip && \ + python3-pip + zstd && \ update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 && \ rm -rf /var/lib/apt/lists/* diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh index 87b88ff..9b480c3 100755 --- a/scripts/entrypoint.sh +++ b/scripts/entrypoint.sh @@ -9,7 +9,8 @@ SNAPSHOT_URL="${SNAPSHOT_URL:-}" #off by default. latest snapshot at https://lbr if [[ "$HUB_COMMAND" == "scribe" ]] && [[ -n "$SNAPSHOT_URL" ]] && [[ ! -d /database/lbry-rocksdb ]]; then files="$(ls)" echo "Downloading and extracting hub snapshot from $SNAPSHOT_URL" - wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar --use-compress-program=unzstd x -C /database + #wget --no-verbose -c "$SNAPSHOT_URL" -O - | tar x -C /database + curl "$SNAPSHOT_URL" | zstd -d | tar xf - -C /database fi if [ -z "$HUB_COMMAND" ]; then