-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
51 lines (35 loc) · 1.07 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
FROM binhex/arch-openvpn
MAINTAINER binhex
# additional files
##################
# add supervisor conf file for app
ADD setup/*.conf /etc/supervisor/conf.d/
# add bash scripts to install app
ADD setup/root/*.sh /root/
# add bash script to setup iptables
ADD apps/root/*.sh /root/
# add bash script to run deluge
ADD apps/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
# docker settings
#################
# map /config to host defined config path (used to store configuration from app)
VOLUME /config
# map /data to host defined data path (used to store data from app)
VOLUME /data
# expose port for deluge webui
EXPOSE 8112
# expose port for privoxy
EXPOSE 8118
# expose port for deluge daemon (used in conjunction with LAN_NETWORK env var)
EXPOSE 58846
# set permissions
#################
# run script to set uid, gid and permissions
CMD ["/bin/bash", "/root/init.sh"]