forked from Sunbird-Ed/SunbirdEd-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.Build
33 lines (33 loc) · 976 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
32
33
#Dockerfile for the player setup
FROM node:6.11.0
MAINTAINER "Manojvv" "[email protected]"
RUN apt update --no-install-recommends -y \
&& 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 update
RUN apt-get install -y zip
RUN apt-get install -y bzip2
RUN npm install -g bower
RUN npm install -g gulp
RUN npm install gulp --save-dev
RUN rm -rf /var/lib/apt/lists/*
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"]