docker-webgrabplus/Dockerfile
2021-12-17 13:14:57 -05:00

62 lines
1.9 KiB
Docker
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
# 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 "**** add mono repository ****" && \
apt-get update && \
apt-get install -y \
gnupg && \
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
echo "deb https://download.mono-project.com/repo/ubuntu focal main" | tee /etc/apt/sources.list.d/mono-official.list && \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y \
cron \
libmono-system-data4.0-cil \
libmono-system-net-http-webrequest4.0-cil \
libmono-system-web4.0-cil \
mono-devel \
mono-runtime \
unzip && \
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