forked from DyonR/docker-Jackettvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
66 lines (53 loc) · 1.5 KB
/
Dockerfile
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
59
60
61
62
63
64
65
66
# Jackett and OpenVPN, JackettVPN
FROM ubuntu:18.04
MAINTAINER DyonR
ENV DEBIAN_FRONTEND noninteractive
ENV XDG_DATA_HOME="/config" \
XDG_CONFIG_HOME="/config"
WORKDIR /opt
RUN usermod -u 99 nobody
# Make directories
RUN mkdir -p /blackhole /config/Jackett /etc/jackett
# Update, upgrade and install required packages
RUN apt update \
&& apt -y upgrade \
&& apt -y install \
apt-transport-https \
wget \
curl \
gnupg \
sed \
openvpn \
curl \
moreutils \
net-tools \
dos2unix \
kmod \
iptables \
ipcalc\
grep \
libicu60 \
libcurl4 \
liblttng-ust0 \
libssl1.0.0 \
libkrb5-3 \
zlib1g \
tzdata \
iputils-ping \
&& apt-get clean \
&& rm -rf \
/var/lib/apt/lists/* \
/tmp/* \
/var/tmp/*
# Install Jackett
RUN jackett_latest=$(curl --silent "https://api.github.com/repos/Jackett/Jackett/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') \
&& curl -o /opt/Jackett.Binaries.LinuxAMDx64.tar.gz -L https://github.com/Jackett/Jackett/releases/download/$jackett_latest/Jackett.Binaries.LinuxAMDx64.tar.gz \
&& tar -xvzf /opt/Jackett.Binaries.LinuxAMDx64.tar.gz \
&& rm /opt/Jackett.Binaries.LinuxAMDx64.tar.gz
VOLUME /blackhole /config
ADD openvpn/ /etc/openvpn/
ADD jackett/ /etc/jackett/
RUN chmod +x /etc/jackett/*.sh /etc/jackett/*.init /etc/openvpn/*.sh /opt/Jackett/jackett
HEALTHCHECK --interval=5m CMD /etc/jackett/healthcheck.sh
EXPOSE 9117
CMD ["/bin/bash", "/etc/openvpn/start.sh"]