|
a/Dockerfile |
|
b/Dockerfile |
|
... |
|
... |
15 |
WORKDIR /usr/src/ne
|
15 |
WORKDIR /usr/src/ne
|
16 |
|
16 |
|
17 |
# get the node package file
|
17 |
# get the node package file
|
18 |
# wildcard used to ensure both package.json and package-lock.json are copied
|
18 |
# wildcard used to ensure both package.json and package-lock.json are copied
|
19 |
COPY package*.json /usr/src/ne/
|
19 |
COPY package*.json /usr/src/ne/
|
|
|
20 |
COPY bower.json /usr/src/ne/
|
|
|
21 |
COPY .bowerrc /usr/src/ne/
|
20 |
|
22 |
|
21 |
# install dependencies
|
23 |
# install dependencies
|
|
|
24 |
RUN npm install -g bower
|
22 |
RUN npm install
|
25 |
RUN npm install
|
|
|
26 |
RUN bower install --allow-root
|
23 |
|
27 |
|
24 |
COPY . .
|
28 |
COPY . .
|
25 |
|
29 |
|
26 |
# expose the configuration enabler port
|
30 |
# expose the configuration enabler port
|
27 |
EXPOSE 5000
|
31 |
EXPOSE 5000
|