forked from datashaman/putio-automator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.template
More file actions
40 lines (32 loc) · 1.09 KB
/
Copy pathDockerfile.template
File metadata and controls
40 lines (32 loc) · 1.09 KB
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 resin/%%RESIN_MACHINE_NAME%%-python:slim
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
cifs-utils \
cron \
python-pip \
python-setuptools \
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/rsyslog.conf /etc/rsyslog.conf
COPY etc/supervisor.conf-rpi /etc/supervisor/conf.d/putio-automator.conf
COPY etc/supervisord.conf /etc/supervisor/supervisord.conf
COPY etc/config.py.dist-rpi /usr/local/share/putio-automator/config.py
COPY etc/cron /etc/cron.d/putio-automator
COPY etc/fstab /etc/fstab
RUN chmod go= /etc/cron.d/putio-automator
RUN pip install -U pip setuptools \
&& pip install putio-automator \
&& rm -rf $HOME/.cache /tmp/pip_build_root
ENV INITSYSTEM on
ENTRYPOINT [ "putio" ]
CMD [ "docker", "bootstrap" ]