-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
47 lines (37 loc) · 1.47 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
# Pre-existing docker image with ffmpeg preloaded (Centos)
# To build: sudo docker build -t <your-username>/<repository-name> .
# To run: sudo docker run -it -p 1337:1337 --entrypoint='bash' <your-username>/<repository-name>
FROM jrottenberg/ffmpeg
# install utilities
RUN yum -y update && yum -y install curl make gcc gcc-c++ git bzip2
# install MP4Box (GPAC)
RUN yum -y install \
freetype-devel \
SDL-devel \
freeglut-devel
ENV MP4Box_Version 0.6.0
RUN curl -fsSL https://github.com/gpac/gpac/archive/v${MP4Box_Version}.tar.gz -o gpac.tar.gz && \
tar -xzf gpac.tar.gz && cd gpac-${MP4Box_Version}/ && \
./configure --static-mp4box --use-zlib=no && \
make -j4 && make install && \
ln -s /usr/local/bin/MP4Box /usr/bin/MP4Box && \
cd .. && rm -rf gpac && rm gpac.tar.gz && rm -rf gpac-${MP4Box_Version}
# install nodejs (version 0.11.0)
RUN curl -sL https://rpm.nodesource.com/setup | bash - && \
yum -y install nodejs && npm install -g [email protected]
# install sailsjs
RUN npm --quiet -g install [email protected]
# install prerequisites
RUN npm install --quiet -g install grunt-cli bower
# Just add package.json to get the npm install cache
WORKDIR /zoomable
ADD package.json /zoomable
ADD bower.json /zoomable
ADD .bowerrc /zoomable
# install npm packages
RUN npm install && \
bower install --quiet --allow-root --config.interactive=false
# Set /zoomable as pwd and copy all files to this container's directory
ADD . /zoomable
# cleanup
RUN npm cache clean