Download flood for transmission release instead of building

This commit is contained in:
Johan van Eck
2021-03-07 12:21:53 +02:00
parent 32eb5672d0
commit 58ce4bcc78
3 changed files with 22 additions and 47 deletions

View File

@@ -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/ /

View File

@@ -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/* && \

View File

@@ -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/*