forked from datashaman/putio-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (31 loc) · 1 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
FROM debian:jessie-slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cron \
python-pip \
python-pkg-resources \
rsyslog \
sendmail \
smbclient \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p \
/etc/auto.master.d \
/files/incomplete /files/downloads /files/torrents \
/var/www \
/var/log/putio-automator \
/var/log/supervisor \
&& chown -R www-data /files /var/www \
&& usermod -u 1000 www-data
COPY etc/config.py.dist /usr/local/share/putio-automator/config.py
COPY etc/cron /etc/cron.d/putio-automator
COPY etc/rsyslog.conf /etc/rsyslog.conf
COPY etc/supervisor.conf /etc/supervisor/conf.d/putio-automator.conf
COPY etc/supervisord.conf /etc/supervisor/supervisord.conf
RUN chmod go= /etc/cron.d/putio-automator
RUN pip install putio-automator \
&& rm -rf $HOME/.cache /tmp/pip_build_root
ENV INITSYSTEM on
ENV PUTIO_ROOT 0
EXPOSE 9001
ENTRYPOINT [ "putio" ]
CMD [ "docker", "bootstrap" ]