mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-01 12:31:49 -04:00
mod trguing added
This commit is contained in:
+26
-3
@@ -1,8 +1,31 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM scratch
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:3.19 as buildstage
|
||||
|
||||
LABEL maintainer="username"
|
||||
ARG MOD_VERSION
|
||||
|
||||
RUN \
|
||||
echo "**** grab transmission trguing ****" && \
|
||||
mkdir -p /root-layer/themes && \
|
||||
if [ -z ${MOD_VERSION} ]; then \
|
||||
MOD_VERSION=$(curl -s "https://api.github.com/repos/openscopeproject/TrguiNG/releases/latest" \
|
||||
| jq -rc ".tag_name"); \
|
||||
fi && \
|
||||
curl -o \
|
||||
/tmp/trguing-web.zip -L \
|
||||
"https://github.com/openscopeproject/TrguiNG/releases/download/${MOD_VERSION}/trguing-web-${MOD_VERSION}.zip" && \
|
||||
mkdir -p /root-layer/themes/trguing && \
|
||||
unzip \
|
||||
/tmp/trguing-web.zip -d \
|
||||
/root-layer/themes/trguing
|
||||
|
||||
# copy local files
|
||||
COPY root/ /
|
||||
COPY root/ /root-layer/
|
||||
|
||||
# ## Single layer deployed image ##
|
||||
FROM scratch
|
||||
|
||||
LABEL maintainer="Azlux"
|
||||
|
||||
# # Add files from buildstage
|
||||
COPY --from=buildstage /root-layer/ /
|
||||
|
||||
Reference in New Issue
Block a user