From 0136afca71e009e82b245034087c2e78dc33fcff Mon Sep 17 00:00:00 2001 From: thelamer Date: Thu, 2 Oct 2025 13:16:59 -0400 Subject: [PATCH] pull using git instead of curl --- Dockerfile | 10 +++------- Dockerfile.aarch64 | 10 +++------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8d9b36d..36adc1a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,17 +47,13 @@ RUN \ python3 \ sqlite-libs && \ echo "**** install beets ****" && \ - mkdir -p /tmp/beets && \ if [ -z ${BEETS_VERSION+x} ] ; then \ BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \ | jq -r .sha); \ fi && \ - curl -o \ - /tmp/beets.tar.gz -sL \ - "https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \ - tar xf \ - /tmp/beets.tar.gz -C \ - /tmp/beets --strip-components=1 && \ + git clone https://github.com/beetbox/beets.git /tmp/beets && \ + cd /tmp/beets && \ + git checkout -f "${BEETS_VERSION}" && \ echo "**** compile mp3gain ****" && \ mkdir -p \ /tmp/mp3gain-src && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 78ab39b..67cda8f 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -47,17 +47,13 @@ RUN \ python3 \ sqlite-libs && \ echo "**** install beets ****" && \ - mkdir -p /tmp/beets && \ if [ -z ${BEETS_VERSION+x} ] ; then \ BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \ | jq -r .sha); \ fi && \ - curl -o \ - /tmp/beets.tar.gz -sL \ - "https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \ - tar xf \ - /tmp/beets.tar.gz -C \ - /tmp/beets --strip-components=1 && \ + git clone https://github.com/beetbox/beets.git /tmp/beets && \ + cd /tmp/beets && \ + git checkout -f "${BEETS_VERSION}" && \ echo "**** compile mp3gain ****" && \ mkdir -p \ /tmp/mp3gain-src && \