mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-26 14:46:05 +01:00
Download flood for transmission release instead of building
This commit is contained in:
27
Dockerfile
27
Dockerfile
@@ -13,8 +13,6 @@ RUN \
|
||||
curl \
|
||||
findutils \
|
||||
jq \
|
||||
nodejs \
|
||||
npm \
|
||||
openssl \
|
||||
p7zip \
|
||||
python3 \
|
||||
@@ -34,11 +32,11 @@ RUN \
|
||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||
echo "**** install third party themes ****" && \
|
||||
curl -o \
|
||||
/tmp/combustion.tar.gz -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/combustion.tar.gz -C \
|
||||
/ --strip-components=1 && \
|
||||
/tmp/combustion.zip -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||
unzip \
|
||||
/tmp/combustion.zip -d \
|
||||
/ && \
|
||||
mkdir -p /tmp/twctemp && \
|
||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||
@@ -56,24 +54,15 @@ RUN \
|
||||
tar xf \
|
||||
/tmp/kettu.tar.gz -C \
|
||||
/kettu --strip-components=1 && \
|
||||
mkdir -p /flood-for-transmission && \
|
||||
mkdir -p /tmp/flood-for-transmission && \
|
||||
curl -o \
|
||||
/tmp/flood-for-transmission.tar.gz -L \
|
||||
"https://github.com/johman10/flood-for-transmission/archive/master.tar.gz" && \
|
||||
"https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/flood-for-transmission.tar.gz -C \
|
||||
/tmp/flood-for-transmission --strip-components=1 && \
|
||||
cd /tmp/flood-for-transmission && \
|
||||
npm ci && \
|
||||
npm run build && \
|
||||
cd / && \
|
||||
mv /tmp/flood-for-transmission/public/** /flood-for-transmission && \
|
||||
/ && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/* && \
|
||||
apk del nodejs npm
|
||||
|
||||
/tmp/*
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
|
||||
@@ -34,11 +34,11 @@ RUN \
|
||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||
echo "**** install third party themes ****" && \
|
||||
curl -o \
|
||||
/tmp/combustion.tar.gz -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/combustion.tar.gz -C \
|
||||
/ --strip-components=1 && \
|
||||
/tmp/combustion.zip -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||
unzip \
|
||||
/tmp/combustion.zip -d \
|
||||
/ && \
|
||||
mkdir -p /tmp/twctemp && \
|
||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||
@@ -56,19 +56,12 @@ RUN \
|
||||
tar xf \
|
||||
/tmp/kettu.tar.gz -C \
|
||||
/kettu --strip-components=1 && \
|
||||
mkdir -p /flood-for-transmission && \
|
||||
mkdir -p /tmp/flood-for-transmission && \
|
||||
curl -o \
|
||||
/tmp/flood-for-transmission.tar.gz -L \
|
||||
"https://github.com/johman10/flood-for-transmission/archive/master.tar.gz" && \
|
||||
"https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/flood-for-transmission.tar.gz -C \
|
||||
/tmp/flood-for-transmission --strip-components=1 && \
|
||||
cd /tmp/flood-for-transmission && \
|
||||
npm ci && \
|
||||
npm run build && \
|
||||
cd / && \
|
||||
mv /tmp/flood-for-transmission/public/** /flood-for-transmission && \
|
||||
/ && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/* && \
|
||||
|
||||
@@ -34,11 +34,11 @@ RUN \
|
||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||
echo "**** install third party themes ****" && \
|
||||
curl -o \
|
||||
/tmp/combustion.tar.gz -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/combustion.tar.gz -C \
|
||||
/ --strip-components=1 && \
|
||||
/tmp/combustion.zip -L \
|
||||
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||
unzip \
|
||||
/tmp/combustion.zip -d \
|
||||
/ && \
|
||||
mkdir -p /tmp/twctemp && \
|
||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||
@@ -56,19 +56,12 @@ RUN \
|
||||
tar xf \
|
||||
/tmp/kettu.tar.gz -C \
|
||||
/kettu --strip-components=1 && \
|
||||
mkdir -p /flood-for-transmission && \
|
||||
mkdir -p /tmp/flood-for-transmission && \
|
||||
curl -o \
|
||||
/tmp/flood-for-transmission.tar.gz -L \
|
||||
"https://github.com/johman10/flood-for-transmission/archive/master.tar.gz" && \
|
||||
"https://github.com/johman10/flood-for-transmission/releases/download/latest/flood-for-transmission.tar.gz" && \
|
||||
tar xf \
|
||||
/tmp/flood-for-transmission.tar.gz -C \
|
||||
/tmp/flood-for-transmission --strip-components=1 && \
|
||||
cd /tmp/flood-for-transmission && \
|
||||
npm ci && \
|
||||
npm run build && \
|
||||
cd / && \
|
||||
mv /tmp/flood-for-transmission/public/** /flood-for-transmission && \
|
||||
/ && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/*
|
||||
|
||||
Reference in New Issue
Block a user