-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
41 lines (39 loc) · 1.57 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
FROM alpine:latest
MAINTAINER Jarod Watkins <jwatkins@jarodw.com>
ENV PKG_CONFIG_PATH /ffmpeg_build/lib/pkgconfig
RUN apk --no-cache add lame-dev libvorbis-dev zlib-dev x264-dev libtheora-dev \
libvpx-dev rtmpdump-dev v4l-utils-dev x265-dev git build-base libass-dev \
autoconf automake libtool ruby-dev libstdc++ coreutils bzip2 yasm ruby-bundler \
ruby-json \
&& mkdir /ffmpeg_sources \
&& cd /ffmpeg_sources \
&& git clone https://github.com/mstorsjo/fdk-aac.git \
&& cd fdk-aac \
&& autoreconf -fiv \
&& ./configure --prefix="/ffmpeg_build" --disable-shared \
&& make \
&& make install \
&& make distclean \
&& cd /ffmpeg_sources \
&& git clone --depth 1 git://source.ffmpeg.org/ffmpeg \
&& cd ffmpeg \
&& ./configure --prefix="/ffmpeg_build" --pkg-config-flags="--static" --enable-gpl \
--extra-cflags="/ffmpeg_build/include" --extra-ldflags="-L/ffmpeg_build/lib" \
--bindir="/ffmpeg/bin" --enable-gpl --enable-libx264 --enable-libfdk-aac \
--enable-nonfree --enable-libmp3lame --enable-libass --enable-libfreetype \
&& make \
&& make install \
&& make distclean \
&& hash -r \
&& git clone --depth 1 https://github.com/maddox/wallop.git /wallop \
&& cd /wallop \
&& bundle install --standalone --binstubs --local --path vendor/gems --quiet \
&& apk del libvorbis-dev zlib-dev libtheora-dev libvpx-dev rtmpdump-dev \
v4l-utils-dev x265-dev git build-base autoconf automake libtool ruby-dev \
&& rm -rf /ffmpeg_sources \
&& rm -rf /ffmpeg_build
WORKDIR /wallop
VOLUME /tmp
EXPOSE 8888
ENV RACK_ENV production
ENTRYPOINT ["script/server"]