Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

Commit 271244d

Browse files
Simon Stonembwhite
authored andcommitted
Add pm2 to demo, fix manufacturing package name (#110)
Signed-off-by: Simon Stone <[email protected]>
1 parent be9c51e commit 271244d

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1-
FROM node:6-alpine
1+
FROM node:8-alpine
22
ENV NPM_CONFIG_LOGLEVEL warn
33
RUN mkdir -p /usr/src/app
44
WORKDIR /usr/src/app
55
COPY package.json /usr/src/app/
6-
RUN npm install --production && \
7-
npm cache clean
6+
RUN npm install --production && \
7+
npm install --production -g pm2 && \
8+
npm cache clean --force
89
COPY app.js /usr/src/app/
910
COPY www /usr/src/app/www
1011
EXPOSE 6001
11-
CMD [ "npm", "start" ]
12+
CMD [ "pm2-docker", "npm", "--", "start" ]
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM node:6-alpine
1+
FROM node:8-alpine
22
ENV NPM_CONFIG_LOGLEVEL warn
33
RUN mkdir -p /usr/src/app
44
WORKDIR /usr/src/app
55
COPY package.json bower.json .bowerrc /usr/src/app/
66
RUN apk add --no-cache git && \
7-
npm install --production -g bower && \
7+
npm install --production -g bower pm2 && \
88
npm install --production && \
99
bower install && \
1010
bower cache clean && \
1111
npm uninstall -g bower && \
12-
npm cache clean && \
12+
npm cache clean --force && \
1313
apk del git
1414
COPY . /usr/src/app/
1515
EXPOSE 6001
16-
CMD [ "npm", "start" ]
16+
CMD [ "pm2-docker", "npm", "--", "start" ]

packages/vehicle-lifecycle-manufacturing/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "vehicle-lifecycle-manufacturer",
2+
"name": "vehicle-lifecycle-manufacturing",
33
"private": true,
44
"version": "0.0.5",
55
"description": "Vehicle Lifecycle - A manufacturers view",
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
FROM node:6-alpine
1+
FROM node:8-alpine
22
ENV NPM_CONFIG_LOGLEVEL warn
33
RUN mkdir -p /usr/src/app
44
WORKDIR /usr/src/app
55
COPY package.json bower.json .bowerrc /usr/src/app/
66
RUN apk add --no-cache git && \
7-
npm install --production -g bower && \
7+
npm install --production -g bower pm2 && \
88
npm install --production && \
99
bower install && \
1010
bower cache clean && \
1111
npm uninstall -g bower && \
12-
npm cache clean && \
12+
npm cache clean --force && \
1313
apk del git
1414
COPY . /usr/src/app/
1515
EXPOSE 6001
16-
CMD [ "npm", "start" ]
16+
CMD [ "pm2-docker", "npm", "--", "start" ]

0 commit comments

Comments
 (0)