-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
37 lines (29 loc) · 860 Bytes
/
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
FROM phusion/baseimage:bionic-1.0.0
# Use baseimage-docker's init system:
CMD ["/sbin/my_init"]
# Install dependencies:
RUN apt-get update \
&& apt-get install -y \
bash curl sudo wget \
python3 unzip sed \
python3-pip unzip \
systemd golang \
&& pip3 install requests
# Clean up APT:
RUN apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Set work dir:
WORKDIR /home
# Install NZBGET and gclone:
RUN wget https://nzbget.net/download/nzbget-latest-bin-linux.run \
&& bash nzbget-latest-bin-linux.run \
&& curl -s https://raw.githubusercontent.com/oneindex/script/master/gclone.sh | sudo bash
# Create required dirs:
RUN mkdir -p /home/nzbget/maindir/ \
&& mkdir -p /home/.config/rclone/
# Copy files:
COPY start /home/
COPY gclone_pp.py /home/nzbget/scripts/
COPY ping.py /home/
# Run NZBGET:
CMD bash /home/start