-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.aarch64
23 lines (18 loc) · 918 Bytes
/
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
FROM linuxserver/qbittorrent:arm64v8-latest
LABEL maintainer="aerodomigue"
ARG TARGETARCH
RUN echo "Building for $TARGETARCH"
HEALTHCHECK --interval=1m --timeout=20s --start-period=1m \
CMD /health-check.sh
RUN addgroup --system vpn && \
apt-get update && apt-get upgrade -y && \
apt-get install -y wget dpkg curl gnupg2 jq iptables vim iputils-ping iproute2 ipset xsltproc
RUN arch_ubuntu=$(dpkg --print-architecture) && nord_vpn_version=$(curl -s https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/ | grep -o ">nordvpn_.*_$arch_ubuntu\.deb" | tail -n 1 | egrep -o "([0-9]{1,}\.)+[0-9]{1,}") && \
wget -nc https://repo.nordvpn.com/deb/nordvpn/debian/pool/main/nordvpn_$nord_vpn_version\_$arch_ubuntu\.deb && dpkg -i nordvpn_$nord_vpn_version\_$arch_ubuntu\.deb && \
rm -rf \
./nordvpn* \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*
# add local files
COPY root/ /