-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
101 lines (89 loc) · 2.23 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
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
89
90
91
92
93
94
95
96
97
98
99
100
101
FROM node:wheezy
ENV DEBIAN_FRONTEND noninteractive
# Install app external dependencies
RUN \
apt-get update \
--quiet \
&& apt-get install \
--yes \
--no-install-recommends \
--no-install-suggests \
autoconf \
automake \
build-essential \
libass-dev \
libgpac-dev \
libtheora-dev \
libtool \
libvorbis-dev \
libmp3lame-dev \
pkg-config \
git-core
# Yasm
RUN git clone git://github.com/yasm/yasm.git \
&& cd yasm \
&& ./autogen.sh \
&& ./configure \
&& make -j`getconf _NPROCESSORS_ONLN` \
&& make install \
&& make distclean \
&& cd /tmp \
&& rm -rf /tmp/yasm
# libopus
RUN git clone git://git.opus-codec.org/opus.git \
&& cd opus \
&& ./autogen.sh \
&& ./configure --disable-shared \
&& make -j`getconf _NPROCESSORS_ONLN` \
&& make install \
&& make distclean \
&& cd /tmp \
&& rm -rf /tmp/opus
## libvpx
RUN git clone https://chromium.googlesource.com/webm/libvpx \
&& cd libvpx \
&& ./configure --disable-shared \
&& make -j`getconf _NPROCESSORS_ONLN` \
&& make install \
&& make clean \
&& cd /tmp \
&& rm -rf /tmp/libvpx
# AAC
RUN wget -O fdk-aac.tar.gz https://github.com/mstorsjo/fdk-aac/tarball/master \
&& tar xzvf fdk-aac.tar.gz \
&& cd mstorsjo-fdk-aac* \
&& autoreconf -fiv \
&& ./configure --disable-shared \
&& make \
&& make install
# ffmpeg
RUN git clone git://source.ffmpeg.org/ffmpeg.git \
&& cd ffmpeg \
&& ./configure \
--disable-debug \
--enable-small \
--enable-nonfree \
--extra-libs=-ldl \
--enable-libass \
--enable-libopus \
--enable-libfdk-aac \
--enable-libfreetype \
--enable-libmp3lame \
--enable-libtheora \
--enable-libvorbis \
--enable-libvpx \
--enable-openssl \
&& make -j`getconf _NPROCESSORS_ONLN` \
&& make install \
&& make distclean \
&& cd /tmp \
&& rm -rf /tmp/ffmpeg
# Create app directory
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
# Install app module dependencies
COPY package.json /usr/src/app/
RUN npm install
# Bundle app source
COPY . /usr/src/app
CMD [ "npm", "start" ]