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

Commit

Permalink
Add pm2 to demo, fix manufacturing package name (#110)
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Stone <[email protected]>
  • Loading branch information
Simon Stone authored and mbwhite committed Dec 15, 2017
1 parent be9c51e commit 271244d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
9 changes: 5 additions & 4 deletions packages/vehicle-lifecycle-car-builder/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM node:6-alpine
FROM node:8-alpine
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install --production && \
npm cache clean
RUN npm install --production && \
npm install --production -g pm2 && \
npm cache clean --force
COPY app.js /usr/src/app/
COPY www /usr/src/app/www
EXPOSE 6001
CMD [ "npm", "start" ]
CMD [ "pm2-docker", "npm", "--", "start" ]
8 changes: 4 additions & 4 deletions packages/vehicle-lifecycle-manufacturing/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM node:6-alpine
FROM node:8-alpine
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json bower.json .bowerrc /usr/src/app/
RUN apk add --no-cache git && \
npm install --production -g bower && \
npm install --production -g bower pm2 && \
npm install --production && \
bower install && \
bower cache clean && \
npm uninstall -g bower && \
npm cache clean && \
npm cache clean --force && \
apk del git
COPY . /usr/src/app/
EXPOSE 6001
CMD [ "npm", "start" ]
CMD [ "pm2-docker", "npm", "--", "start" ]
2 changes: 1 addition & 1 deletion packages/vehicle-lifecycle-manufacturing/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "vehicle-lifecycle-manufacturer",
"name": "vehicle-lifecycle-manufacturing",
"private": true,
"version": "0.0.5",
"description": "Vehicle Lifecycle - A manufacturers view",
Expand Down
8 changes: 4 additions & 4 deletions packages/vehicle-lifecycle-vda/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
FROM node:6-alpine
FROM node:8-alpine
ENV NPM_CONFIG_LOGLEVEL warn
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json bower.json .bowerrc /usr/src/app/
RUN apk add --no-cache git && \
npm install --production -g bower && \
npm install --production -g bower pm2 && \
npm install --production && \
bower install && \
bower cache clean && \
npm uninstall -g bower && \
npm cache clean && \
npm cache clean --force && \
apk del git
COPY . /usr/src/app/
EXPOSE 6001
CMD [ "npm", "start" ]
CMD [ "pm2-docker", "npm", "--", "start" ]

0 comments on commit 271244d

Please sign in to comment.