forked from linuxserver/docker-webgrabplus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.aarch64
58 lines (51 loc) · 1.71 KB
/
Dockerfile.aarch64
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# syntax=docker/dockerfile:1
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-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