Skip to content

Commit e97a8f7

Browse files
committed
pull using git instead of curl
1 parent d120225 commit e97a8f7

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

Dockerfile

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,13 @@ RUN \
4747
python3 \
4848
sqlite-libs && \
4949
echo "**** install beets ****" && \
50-
mkdir -p /tmp/beets && \
5150
if [ -z ${BEETS_VERSION+x} ] ; then \
5251
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
5352
| jq -r .sha); \
5453
fi && \
55-
curl -o \
56-
/tmp/beets.tar.gz -sL \
57-
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \
58-
tar xf \
59-
/tmp/beets.tar.gz -C \
60-
/tmp/beets --strip-components=1 && \
54+
git clone https://github.com/beetbox/beets.git /tmp/beets && \
55+
cd /tmp/beets && \
56+
git checkout -f "${BEETS_VERSION}" && \
6157
echo "**** compile mp3gain ****" && \
6258
mkdir -p \
6359
/tmp/mp3gain-src && \

Dockerfile.aarch64

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,13 @@ RUN \
4747
python3 \
4848
sqlite-libs && \
4949
echo "**** install beets ****" && \
50-
mkdir -p /tmp/beets && \
5150
if [ -z ${BEETS_VERSION+x} ] ; then \
5251
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
5352
| jq -r .sha); \
5453
fi && \
55-
curl -o \
56-
/tmp/beets.tar.gz -sL \
57-
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \
58-
tar xf \
59-
/tmp/beets.tar.gz -C \
60-
/tmp/beets --strip-components=1 && \
54+
git clone https://github.com/beetbox/beets.git /tmp/beets && \
55+
cd /tmp/beets && \
56+
git checkout -f "${BEETS_VERSION}" && \
6157
echo "**** compile mp3gain ****" && \
6258
mkdir -p \
6359
/tmp/mp3gain-src && \

0 commit comments

Comments
 (0)