-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
62 lines (46 loc) · 1.83 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
FROM node:4.3.0
MAINTAINER Srinath Janakiraman <[email protected]>
ENV VERSION=1.0.1
ENV WORK_DIR=/srv/www/ludicrum-files
ENV PORT=4000
ENV REDIS_HOST=redis
ENV REDIS_PORT=6379
ENV DB_HOST=orientdb
ENV DB_PORT=2424
ENV DB_NAME=ludicrum
ENV THUMBNAIL_DIR=/srv/tmp/ludicrum-files/thumbnails/
## ENV NODE_ENV
## Expose port 4000
EXPOSE ${PORT}
##RUN apt-get install build-essential libavahi-compat-libdnssd-dev
#install ffmpeg
RUN apt-get update
RUN apt-get --yes --force-yes install wget
RUN echo "deb http://www.deb-multimedia.org jessie main non-free" >>/etc/apt/sources.list \
&& echo "deb-src http://www.deb-multimedia.org jessie main non-free" >>/etc/apt/sources.list \
&& apt-get update \
&& apt-get --yes --force-yes install deb-multimedia-keyring \
&& apt-get update \
&& apt-get remove ffmpeg \
&& apt-get --yes --force-yes install build-essential libmp3lame-dev libvorbis-dev libtheora-dev libspeex-dev yasm pkg-config libfaac-dev libopenjpeg-dev libx264-dev;
RUN wget http://ffmpeg.org/releases/ffmpeg-3.0.tar.bz2 \
&& tar xvjf ffmpeg-3.0.tar.bz2 \
&& cd ffmpeg-3.0 \
&& ./configure --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libx264 --enable-libspeex --enable-shared --enable-pthreads --enable-libopenjpeg --enable-libfaac --enable-nonfree \
&& make \
&& make install;
##Creating working directory
RUN mkdir -p ${WORK_DIR} \
&& mkdir -p ${THUMBNAIL_DIR};
##Setting working directory
WORKDIR ${WORK_DIR}
##Copy package file to working directory
COPY package.json ./
##Install dependencies defined in package file
RUN npm install
##Copy rest of the files to working directory
COPY [".", "./"]
##Set the entry point to node
ENTRYPOINT ["node"]
##Set the arguments to be passed to the entrypoint
CMD ["app.js"]