forked from tesYolan/AvatarOrchestrator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
28 lines (25 loc) · 1.12 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
FROM node:8
RUN apt-get update
RUN apt-get install -y python-pip python-dev wget
RUN apt-get install -y libzmq3-dev
RUN ldconfig
RUN pip install pyzmq zerorpc gevent==1.1
ENV NPM_CONFIG_PREFIX /home/node/.npm-global
RUN npm install -g gulp-cli
ENV PATH $PATH:/home/node/.npm-global/bin
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/usr/local/lib:/usr/lib
# copy the Restforhead package files
COPY package.json /tmp/app/package.json
RUN cd /tmp/app && npm install
RUN mkdir -p /home/node/app/ && cp -a /tmp/app/node_modules /home/node/app/
# copy the Talk-to-sophia-admin files
COPY Talk-To-Sophia-Admin/package.json /tmp/talk-to-sophia/package.json
RUN cd /tmp/talk-to-sophia && npm install
RUN mkdir -p /home/node/app/Talk-To-Sophia-Admin/ && cp -a /tmp/talk-to-sophia/node_modules /home/node/app/Talk-To-Sophia-Admin/
# copy the mediasoup-demo files
COPY mediasoup-demo/app/package.json /tmp/mediasoup-demo/app/package.json
RUN cd /tmp/mediasoup-demo/app/ && npm install
RUN mkdir -p /home/node/app/mediasoup-demo/app && cp -a /tmp/mediasoup-demo/app/node_modules /home/node/app/mediasoup-demo/app
WORKDIR /home/node/app/
COPY . /home/node/app
User node