forked from Sunbird-Ed/SunbirdEd-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.Build
31 lines (31 loc) · 914 Bytes
/
Dockerfile.Build
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
#Dockerfile for the player setup
FROM node:6.11.0
MAINTAINER "Manojvv" "[email protected]"
RUN apt update \
&& apt-get install -y python \
&& apt-get install -y python-dev \
&& apt-get update \
&& apt-get install git \
&& mkdir -p /opt/player \
&& apt-get install autoconf \
&& apt-get install g++ \
&& apt-get install make \
&& apt-get install nasm
WORKDIR /opt/player
COPY * /opt/player/
RUN apt-get install -y zip \
&& apt-get install -y bzip2 \
&& npm install -g bower \
&& npm install -g gulp \
&& npm install gulp --save-dev
WORKDIR /opt/player/
RUN npm install --only=dev --unsafe-perm
RUN bower cache clean
RUN bower prune -f
RUN bower install /opt/player/bower.json --force
RUN gulp
RUN rm -rf node_modules
RUN npm install --production --unsafe-perm
RUN cp -R node_modules dist/
WORKDIR /opt/player
CMD ["zip", "-r", "player-dist.zip", "dist"]