mirror of
https://github.com/linuxserver/docker-beets
synced 2025-12-06 16:34:31 +01:00
pull using git instead of curl
This commit is contained in:
parent
d1202256b9
commit
0136afca71
2 changed files with 6 additions and 14 deletions
10
Dockerfile
10
Dockerfile
|
|
@ -47,17 +47,13 @@ RUN \
|
||||||
python3 \
|
python3 \
|
||||||
sqlite-libs && \
|
sqlite-libs && \
|
||||||
echo "**** install beets ****" && \
|
echo "**** install beets ****" && \
|
||||||
mkdir -p /tmp/beets && \
|
|
||||||
if [ -z ${BEETS_VERSION+x} ] ; then \
|
if [ -z ${BEETS_VERSION+x} ] ; then \
|
||||||
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
|
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
|
||||||
| jq -r .sha); \
|
| jq -r .sha); \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
git clone https://github.com/beetbox/beets.git /tmp/beets && \
|
||||||
/tmp/beets.tar.gz -sL \
|
cd /tmp/beets && \
|
||||||
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \
|
git checkout -f "${BEETS_VERSION}" && \
|
||||||
tar xf \
|
|
||||||
/tmp/beets.tar.gz -C \
|
|
||||||
/tmp/beets --strip-components=1 && \
|
|
||||||
echo "**** compile mp3gain ****" && \
|
echo "**** compile mp3gain ****" && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/mp3gain-src && \
|
/tmp/mp3gain-src && \
|
||||||
|
|
|
||||||
|
|
@ -47,17 +47,13 @@ RUN \
|
||||||
python3 \
|
python3 \
|
||||||
sqlite-libs && \
|
sqlite-libs && \
|
||||||
echo "**** install beets ****" && \
|
echo "**** install beets ****" && \
|
||||||
mkdir -p /tmp/beets && \
|
|
||||||
if [ -z ${BEETS_VERSION+x} ] ; then \
|
if [ -z ${BEETS_VERSION+x} ] ; then \
|
||||||
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
|
BEETS_VERSION=$(curl -sX GET "https://api.github.com/repos/beetbox/beets/commits/master" \
|
||||||
| jq -r .sha); \
|
| jq -r .sha); \
|
||||||
fi && \
|
fi && \
|
||||||
curl -o \
|
git clone https://github.com/beetbox/beets.git /tmp/beets && \
|
||||||
/tmp/beets.tar.gz -sL \
|
cd /tmp/beets && \
|
||||||
"https://github.com/beetbox/beets/archive/${BEETS_VERSION}.tar.gz" && \
|
git checkout -f "${BEETS_VERSION}" && \
|
||||||
tar xf \
|
|
||||||
/tmp/beets.tar.gz -C \
|
|
||||||
/tmp/beets --strip-components=1 && \
|
|
||||||
echo "**** compile mp3gain ****" && \
|
echo "**** compile mp3gain ****" && \
|
||||||
mkdir -p \
|
mkdir -p \
|
||||||
/tmp/mp3gain-src && \
|
/tmp/mp3gain-src && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue