This repository was archived by the owner on Mar 8, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +14
-13
lines changed
vehicle-lifecycle-car-builder
vehicle-lifecycle-manufacturing Expand file tree Collapse file tree 4 files changed +14
-13
lines changed Original file line number Diff line number Diff line change 1- FROM node:6 -alpine
1+ FROM node:8 -alpine
22ENV NPM_CONFIG_LOGLEVEL warn
33RUN mkdir -p /usr/src/app
44WORKDIR /usr/src/app
55COPY 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
89COPY app.js /usr/src/app/
910COPY www /usr/src/app/www
1011EXPOSE 6001
11- CMD [ "npm" , "start" ]
12+ CMD [ "pm2-docker" , " npm" , "-- " , "start" ]
Original file line number Diff line number Diff line change 1- FROM node:6 -alpine
1+ FROM node:8 -alpine
22ENV NPM_CONFIG_LOGLEVEL warn
33RUN mkdir -p /usr/src/app
44WORKDIR /usr/src/app
55COPY package.json bower.json .bowerrc /usr/src/app/
66RUN 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
1414COPY . /usr/src/app/
1515EXPOSE 6001
16- CMD [ "npm" , "start" ]
16+ CMD [ "pm2-docker" , " npm" , "-- " , "start" ]
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 1- FROM node:6 -alpine
1+ FROM node:8 -alpine
22ENV NPM_CONFIG_LOGLEVEL warn
33RUN mkdir -p /usr/src/app
44WORKDIR /usr/src/app
55COPY package.json bower.json .bowerrc /usr/src/app/
66RUN 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
1414COPY . /usr/src/app/
1515EXPOSE 6001
16- CMD [ "npm" , "start" ]
16+ CMD [ "pm2-docker" , " npm" , "-- " , "start" ]
You can’t perform that action at this time.
0 commit comments