forked from cpoppema/docker-flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
73 lines (66 loc) · 3.38 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
67
68
69
70
71
72
73
FROM phusion/baseimage:0.9.19
LABEL org.freenas.interactive="false" \
org.freenas.version="2" \
org.freenas.upgradeable="true" \
org.freenas.expose-ports-at-host="true" \
org.freenas.autostart="true" \
org.freenas.web-ui-protocol="http" \
org.freenas.web-ui-port="5050" \
org.freenas.web-ui-path="" \
org.freenas.port-mappings="5050:5050/tcp" \
org.freenas.volumes="[ \
{ \
\"name\": \"/config\", \
\"descr\": \"Config storage space\" \
}, \
{ \
\"name\": \"/downloads\", \
\"descr\": \"Downloads volume\" \
} \
]" \
org.freenas.settings="[ \
{ \
\"env\": \"WEBPASS\", \
\"descr\": \"Web UI Password\", \
\"optional\": true \
}, \
{ \
\"env\": \"PGID\", \
\"descr\": \"GroupID\", \
\"optional\": true \
}, \
{ \
\"env\": \"PUID\", \
\"descr\": \"UserID\", \
\"optional\": true \
} \
]"
RUN rm -rf /etc/service/sshd /etc/my_init.d/00_regen_ssh_host_keys.sh
ENV DEBIAN_FRONTEND noninteractive
ENV TERM screen
# Use baseimage-docker's init system.
CMD ["/sbin/my_init"]
RUN apt-get update -q \
&& apt-get install -qy \
python2.7 \
python-pip \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install the latest available package.
# Pin setuptools to version 32 to avoid a race condition, see:
# https://github.com/pypa/setuptools/issues/951
RUN pip install -U \
pip \
setuptools==32 \
flexget \
transmissionrpc
# Add service files.
COPY init/ /etc/my_init.d/
COPY services/ /etc/service/
RUN chmod -v +x /etc/service/*/run
RUN chmod -v +x /etc/my_init.d/*.sh
EXPOSE 5050/tcp
VOLUME /config
# Add user.
RUN useradd -u 911 -U -s /bin/false abc \
&& usermod -G users abc