mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-28 19:23:43 -04:00
transmission:transmission-web-control initial release
This mod provides a web UI called Transmission Web Control for transmission. It was once removed when transmission was upgraded to v4.0.
This commit is contained in:
+27
-3
@@ -1,8 +1,32 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM scratch
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
|
||||
|
||||
LABEL maintainer="username"
|
||||
ARG MOD_VERSION
|
||||
|
||||
RUN \
|
||||
echo "**** grab transmission-web-control ****" && \
|
||||
mkdir -p /root-layer/themes && \
|
||||
if [ -z ${MOD_VERSION} ]; then \
|
||||
MOD_VERSION=$(curl -s "https://api.github.com/repos/ronggang/transmission-web-control/releases/latest" \
|
||||
| jq -rc ".tag_name"); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/transmission-web-control.tar.gz -L \
|
||||
"https://github.com/ronggang/transmission-web-control/archive/refs/tags/${MOD_VERSION}.tar.gz" && \
|
||||
mkdir -p /root-layer/themes/transmission-web-control && \
|
||||
tar xzf \
|
||||
/tmp/transmission-web-control.tar.gz -C \
|
||||
/root-layer/themes/transmission-web-control \
|
||||
$(tar tf /tmp/transmission-web-control.tar.gz | grep -E "^[^/]+/src") --strip-components=2
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
COPY root/ /root-layer/
|
||||
|
||||
# ## Single layer deployed image ##
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="FujiZ"
|
||||
|
||||
# # Add files from buildstage
|
||||
COPY --from=buildstage /root-layer/ /
|
||||
|
||||
Reference in New Issue
Block a user