forked from Sunbird-Ed/SunbirdEd-portal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.Build
24 lines (24 loc) · 826 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
#Dockerfile for the player setup
FROM node:14.19.0
MAINTAINER "Rajesh Rajendran <[email protected]>"
RUN sed -i '/jessie-updates/d' /etc/apt/sources.list
RUN apt-get update && apt-get install -y --no-install-recommends apt-utils \
&& apt-get install -y --force-yes python python-dev autoconf g++ make nasm bzip2 \
&& useradd jenkins
RUN npm i -g [email protected]
RUN mkdir -p /home/jenkins
WORKDIR /home/jenkins
COPY * /home/jenkins/
RUN chown -R jenkins:jenkins /home/jenkins
USER jenkins
WORKDIR /home/jenkins/app
RUN npm set progress=false
RUN npm install --unsafe-perm
RUN npm run deploy
WORKDIR /home/jenkins/app/app_dist
RUN npm install --production --unsafe-perm
WORKDIR /home/jenkins/app
# passing commit hash as build arg
ARG commit_hash=0
ENV commit_hash ${commit_hash}
CMD ["/bin/bash","-x","../vcs-config.sh"]