forked from cpoppema/docker-flexget
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
executable file
·39 lines (32 loc) · 977 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
38
39
FROM phusion/baseimage:0.11
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 purge \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Install the latest available package.
# Make sure to install setuptools version >=36 to avoid a race condition, see:
# https://github.com/pypa/setuptools/issues/951
RUN pip install -U \
pip \
setuptools>=36 \
rarfile \
flexget
# Add service files.
ADD init/ /etc/my_init.d/
ADD services/ /etc/service/
RUN chmod -v +x /etc/service/*/run
RUN chmod -v +x /etc/my_init.d/*.sh
# Make it easy to run `docker exec`, without the need of config path
RUN ln -s /config /root/.flexget
VOLUME /config
# Add user.
RUN useradd -u 1026 -U -s /bin/false abc \
&& usermod -G users abc