mirror of
https://github.com/linuxserver/docker-transmission.git
synced 2025-10-30 00:15:48 +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 \
|
curl \
|
||||||
findutils \
|
findutils \
|
||||||
jq \
|
jq \
|
||||||
nodejs \
|
|
||||||
npm \
|
|
||||||
openssl \
|
openssl \
|
||||||
p7zip \
|
p7zip \
|
||||||
python3 \
|
python3 \
|
||||||
@@ -34,11 +32,11 @@ RUN \
|
|||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.tar.gz -L \
|
/tmp/combustion.zip -L \
|
||||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||||
tar xf \
|
unzip \
|
||||||
/tmp/combustion.tar.gz -C \
|
/tmp/combustion.zip -d \
|
||||||
/ --strip-components=1 && \
|
/ && \
|
||||||
mkdir -p /tmp/twctemp && \
|
mkdir -p /tmp/twctemp && \
|
||||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||||
@@ -56,24 +54,15 @@ RUN \
|
|||||||
tar xf \
|
tar xf \
|
||||||
/tmp/kettu.tar.gz -C \
|
/tmp/kettu.tar.gz -C \
|
||||||
/kettu --strip-components=1 && \
|
/kettu --strip-components=1 && \
|
||||||
mkdir -p /flood-for-transmission && \
|
|
||||||
mkdir -p /tmp/flood-for-transmission && \
|
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/flood-for-transmission.tar.gz -L \
|
/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 \
|
tar xf \
|
||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/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 ****" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* && \
|
/tmp/*
|
||||||
apk del nodejs npm
|
|
||||||
|
|
||||||
|
|
||||||
# copy local files
|
# copy local files
|
||||||
COPY root/ /
|
COPY root/ /
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ RUN \
|
|||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.tar.gz -L \
|
/tmp/combustion.zip -L \
|
||||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||||
tar xf \
|
unzip \
|
||||||
/tmp/combustion.tar.gz -C \
|
/tmp/combustion.zip -d \
|
||||||
/ --strip-components=1 && \
|
/ && \
|
||||||
mkdir -p /tmp/twctemp && \
|
mkdir -p /tmp/twctemp && \
|
||||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||||
@@ -56,19 +56,12 @@ RUN \
|
|||||||
tar xf \
|
tar xf \
|
||||||
/tmp/kettu.tar.gz -C \
|
/tmp/kettu.tar.gz -C \
|
||||||
/kettu --strip-components=1 && \
|
/kettu --strip-components=1 && \
|
||||||
mkdir -p /flood-for-transmission && \
|
|
||||||
mkdir -p /tmp/flood-for-transmission && \
|
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/flood-for-transmission.tar.gz -L \
|
/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 \
|
tar xf \
|
||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/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 ****" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/* && \
|
/tmp/* && \
|
||||||
|
|||||||
@@ -34,11 +34,11 @@ RUN \
|
|||||||
transmission-daemon==${TRANSMISSION_VERSION} && \
|
transmission-daemon==${TRANSMISSION_VERSION} && \
|
||||||
echo "**** install third party themes ****" && \
|
echo "**** install third party themes ****" && \
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/combustion.tar.gz -L \
|
/tmp/combustion.zip -L \
|
||||||
"https://github.com/Secretmapper/combustion/archive/release.tar.gz" && \
|
"https://github.com/Secretmapper/combustion/archive/release.zip" && \
|
||||||
tar xf \
|
unzip \
|
||||||
/tmp/combustion.tar.gz -C \
|
/tmp/combustion.zip -d \
|
||||||
/ --strip-components=1 && \
|
/ && \
|
||||||
mkdir -p /tmp/twctemp && \
|
mkdir -p /tmp/twctemp && \
|
||||||
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
TWCVERSION=$(curl -sX GET "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||||
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
| awk '/tag_name/{print $4;exit}' FS='[""]') && \
|
||||||
@@ -56,19 +56,12 @@ RUN \
|
|||||||
tar xf \
|
tar xf \
|
||||||
/tmp/kettu.tar.gz -C \
|
/tmp/kettu.tar.gz -C \
|
||||||
/kettu --strip-components=1 && \
|
/kettu --strip-components=1 && \
|
||||||
mkdir -p /flood-for-transmission && \
|
|
||||||
mkdir -p /tmp/flood-for-transmission && \
|
|
||||||
curl -o \
|
curl -o \
|
||||||
/tmp/flood-for-transmission.tar.gz -L \
|
/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 \
|
tar xf \
|
||||||
/tmp/flood-for-transmission.tar.gz -C \
|
/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 ****" && \
|
echo "**** cleanup ****" && \
|
||||||
rm -rf \
|
rm -rf \
|
||||||
/tmp/*
|
/tmp/*
|
||||||
|
|||||||
Reference in New Issue
Block a user