forked from mdhiggins/sonarr-sma
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
50 lines (44 loc) · 1.52 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
FROM linuxserver/sonarr:preview
MAINTAINER mdhiggins <mdhiggins23@gmail.com>
# get python3 and git, and install python libraries
RUN \
apt-get update && \
apt-get install -y \
git \
wget \
python3 \
python3-pip && \
# install pip, venv, and set up a virtual self contained python environment
python3 -m pip install --user --upgrade pip && \
python3 -m pip install --user virtualenv && \
mkdir /usr/local/bin/sma && \
python3 -m virtualenv /usr/local/bin/sma/env && \
/usr/local/bin/sma/env/bin/pip install requests \
requests[security] \
requests-cache \
babelfish \
tmdbsimple \
'guessit<2' \
'subliminal<2' \
'stevedore==1.19.1' \
python-dateutil \
qtfaststart && \
# download repo
git clone https://github.com/mdhiggins/sickbeard_mp4_automator.git /usr/local/bin/sma/sickbeard_mp4_automator && \
# create logging directory
mkdir /var/log/sickbeard_mp4_automator && \
touch /var/log/sickbeard_mp4_automator/index.log && \
chgrp -R users /var/log/sickbeard_mp4_automator && \
chmod -R g+w /var/log/sickbeard_mp4_automator && \
# ffmpeg
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz -O /tmp/ffmpeg.tar.xz && \
mkdir /usr/local/bin/ffmpeg && \
tar -xJf /tmp/ffmpeg.tar.xz -C /usr/local/bin/ffmpeg --strip-components 1 && \
chgrp -R users /usr/local/bin/ffmpeg && \
chmod g+x /usr/local/bin/ffmpeg/ffmpeg && \
chmod g+x /usr/local/bin/ffmpeg/ffprobe && \
# cleanup
rm -rf \
/tmp/* \
/var/lib/apt/lists/* \
/var/tmp/*