This repository has been archived by the owner on Mar 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 725
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add pm2 to demo, fix manufacturing package name (#110)
Signed-off-by: Simon Stone <[email protected]>
- Loading branch information
Showing
4 changed files
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" ] |