forked from binhex/arch-rtorrentvpn
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (40 loc) · 1.29 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
FROM binhex/arch-int-vpn:latest
LABEL org.opencontainers.image.authors = "binhex"
LABEL org.opencontainers.image.source = "https://github.com/binhex/arch-sabnzbd"
# additional files
##################
# add supervisor conf file for app
ADD build/*.conf /etc/supervisor/conf.d/
# add bash scripts to install app
ADD build/root/*.sh /root/
# get release tag name from build arg
ARG release_tag_name
# add run bash scripts
ADD run/nobody/*.sh /home/nobody/
# add pre-configured config files for nobody
ADD config/nobody/ /home/nobody/
# install app
#############
# make executable and run bash scripts to install app
RUN chmod +x /root/*.sh /home/nobody/*.sh && \
/bin/bash /root/install.sh "${release_tag_name}"
# docker settings
#################
# add pyrocore symlinks to path - symlinks from /opt/pyrocore to /home/nobody/bin
ENV PATH="${PATH}:/home/nobody/bin"
# expose port for scgi
EXPOSE 5000
# expose port for rutorrent http
EXPOSE 9080
# expose port for rutorrent https
EXPOSE 9443
# expose port for privoxy
EXPOSE 8118
# expose port for incoming connections (used only if vpn disabled)
EXPOSE 49160
# expose port for dht udp (used only if vpn disabled)
EXPOSE 49170
# set permissions
#################
# run script to set uid, gid and permissions
CMD ["/bin/bash", "/usr/local/bin/init.sh"]