mirror of
https://github.com/linuxserver/docker-webgrabplus.git
synced 2026-02-19 19:52:00 +08:00
Bot Updating Templated Files
This commit is contained in:
parent
8765c6ef9a
commit
7bfcad0dc9
@ -1,58 +0,0 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:arm32v7-3.17
|
||||
|
||||
# set version label
|
||||
ARG BUILD_DATE
|
||||
ARG VERSION
|
||||
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
||||
LABEL maintainer="saarg"
|
||||
|
||||
# package versions
|
||||
ARG WEBGRAB_VER
|
||||
|
||||
# environment variables.
|
||||
ARG DEBIAN_FRONTEND="noninteractive"
|
||||
ENV HOME /config
|
||||
|
||||
RUN \
|
||||
echo "**** install packages ****" && \
|
||||
apk -U --update --no-cache add \
|
||||
icu-libs \
|
||||
iputils \
|
||||
unzip && \
|
||||
echo "**** install dotnet sdk ****" && \
|
||||
mkdir -p /app/dotnet && \
|
||||
curl -o /tmp/dotnet-install.sh -L \
|
||||
https://dot.net/v1/dotnet-install.sh && \
|
||||
chmod +x /tmp/dotnet-install.sh && \
|
||||
/tmp/dotnet-install.sh -c 6.0 --install-dir /app/dotnet --runtime dotnet && \
|
||||
echo "**** install webgrabplus ****" && \
|
||||
if [ -z "$WEBGRAB_VER" ]; then \
|
||||
WEBGRAB_VER=$(curl -fsL http://webgrabplus.com/download/sw | grep -m1 /download/sw/v | sed 's|.*/download/sw/v\(.*\)">V.*|\1|'); \
|
||||
fi && \
|
||||
echo "Found Webgrabplus version ${WEBGRAB_VER}" && \
|
||||
WEBGRAB_URL=$(curl -fsL http://webgrabplus.com/download/sw/v${WEBGRAB_VER} | grep '>Linux</a>' | sed 's|.*\(http://webgrab.*tar\.gz\).*|\1|') && \
|
||||
mkdir -p \
|
||||
/app/wg++ && \
|
||||
curl -o /tmp/wg++.tar.gz -L \
|
||||
"${WEBGRAB_URL}" && \
|
||||
tar xzf \
|
||||
/tmp/wg++.tar.gz -C \
|
||||
/app/wg++ --strip-components=1 && \
|
||||
echo "**** download siteini.pack ****" && \
|
||||
curl -o \
|
||||
/tmp/ini.zip -L \
|
||||
http://www.webgrabplus.com/sites/default/files/download/ini/SiteIniPack_current.zip && \
|
||||
unzip -q /tmp/ini.zip -d /defaults/ini/ && \
|
||||
echo "**** cleanup ****" && \
|
||||
rm -rf \
|
||||
/tmp/* \
|
||||
/var/lib/apt/lists/* \
|
||||
/var/tmp/*
|
||||
|
||||
# copy files
|
||||
COPY root/ /
|
||||
|
||||
# ports and volumes
|
||||
VOLUME /config /data
|
||||
Loading…
x
Reference in New Issue
Block a user