-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
88 lines (69 loc) · 2.4 KB
/
Dockerfile
File metadata and controls
88 lines (69 loc) · 2.4 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
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
FROM ubuntu:14.04
#Based on the work of Eric Schultz <eric@startuperic.com>
#Thanks to Tim Haak <tim@haak.co.uk>
#ENV DEBIAN_FRONTEND noninteractive
# Set correct environment variables
ENV HOME /root
WORKDIR /work
RUN locale-gen en_US en_US.UTF-8
# Use baseimage-dockers init system
CMD ["/sbin/my_init"]
RUN apt-get -q update --fix-missing
RUN apt-get -qy upgrade
# Supervisor
RUN apt-get -qy install supervisor
## Dependencies
RUN apt-get -qy install python-cheetah wget git autoconf automake build-essential libass-dev libfreetype6-dev
RUN apt-get -qy install libgpac-dev libsdl1.2-dev libtheora-dev libtool libva-dev libvdpau-dev libvorbis-dev
RUN apt-get -qy install libx11-dev libxext-dev libxfixes-dev pkg-config texi2html zlib1g-dev yasm libx264-dev
Run apt-get -qy install libmp3lame-dev libopus-dev unzip
# Install FFMPEG
## Dep. libfdk-aac
RUN git clone git://github.com/mstorsjo/fdk-aac.git fdk-aac
WORKDIR /work/fdk-aac
RUN autoreconf -fiv
RUN ./configure --prefix="$HOME/ffmpeg_build" --disable-shared
RUN make
RUN make install
RUN make distclean
## FFMPEG Source
WORKDIR /work
RUN git clone https://github.com/FFmpeg/FFmpeg ffmpeg-source
WORKDIR /work/ffmpeg-source
RUN PATH="$PATH:$HOME/bin" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \
--prefix="$HOME/ffmpeg_build" \
--extra-cflags="-I$HOME/ffmpeg_build/include" \
--extra-ldflags="-L$HOME/ffmpeg_build/lib" \
--bindir="$HOME/bin" \
--enable-gpl \
--enable-libass \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libopus \
--enable-libtheora \
--enable-libvorbis \
--enable-libx264 \
--enable-nonfree
RUN PATH="$PATH:$HOME/bin" make
RUN make install
RUN make distclean
RUN hash -r
WORKDIR /work
## Python Setup Tools
RUN wget https://bootstrap.pypa.io/ez_setup.py -O - | python
# Install Sick Beard
RUN git clone git://github.com/midgetspy/Sick-Beard.git sickbeard
# Install Couch Potato
RUN git clone https://github.com/RuudBurger/CouchPotatoServer.git couch-potato
## MP4 Automator
RUN git clone git://github.com/mdhiggins/sickbeard_mp4_automator.git mp4_automator
COPY autoProcess.ini /work/mp4_automator/autoProcess.ini
# Install Configs
RUN mkdir -p /var/log/supervisor
COPY supervisord.conf /work/supervisord.conf
EXPOSE 8081
EXPOSE 5050
VOLUME ["/config", "/storage", "/incoming"]
CMD [ "-c", "/work/supervisord.conf"]
ENTRYPOINT ["/usr/bin/supervisord"]