-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
33 lines (23 loc) · 1.03 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
FROM centos:centos6
# Enable EPEL for Node.js
RUN rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
# Install Node.js and npm
RUN yum install -y npm git
# Install bower package manager globally
RUN npm install bower -g
# Copy server package management files, and download dependencies
COPY ./demo-server/package.json /src/twilio-client/demo-server/package.json
# Install server dependencies
RUN cd /src/twilio-client/demo-server; npm install
# Copy client package management files, and download dependencies
COPY ./.bowerrc /src/twilio-client/.bowerrc
COPY ./bower.json /src/twilio-client/bower.json
# Install client dependencies
RUN cd /src/twilio-client; bower install --allow-root
# Bundle app source
COPY . /src/twilio-client
# Expose server port
EXPOSE 3000
# Default command to run, if building with config.json. Otherwise, please run this command with proper parameters.
# List of required parameters is described in the README.md file.
CMD ["node", "/src/twilio-client/demo-server/index.js"]