Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
LINAGORA
L
LGS
Labs
linstt-controller
Commits
2950d2ee
Commit
2950d2ee
authored
Dec 04, 2017
by
Yoann HOUPERT
Browse files
use pm2 for multi processing management
parent
9771403d
Pipeline
#6812
passed with stage
in 1 minute and 20 seconds
Changes
2
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
Dockerfile
Dockerfile
+4
-8
process.yml
process.yml
+9
-0
No files found.
Dockerfile
View file @
2950d2ee
FROM
node:8-slim
RUN
apt-get update
&&
apt-get
install
-y
wget
--no-install-recommends
\
&&
apt-get update
\
&&
rm
-rf
/var/lib/apt/lists/
*
\
&&
apt-get purge
--auto-remove
-y
curl
\
&&
rm
-rf
/src/
*
.deb
WORKDIR
/usr/src/app/linstt-poc
COPY
package.json .
COPY
yarn.lock .
RUN
yarn
install
RUN
npm
install
pm2
-g
#RUN yarn install
COPY
. /usr/src/app/linstt-poc
RUN
/usr/src/app/linstt-poc/ssl/generateDockerCert.sh
CMD
["yarn", "start"]
#CMD ["yarn", "start"]
CMD
["pm2-docker", "process.yml"]
process.yml
0 → 100644
View file @
2950d2ee
apps
:
-
script
:
app.js
instances
:
4
exec_mode
:
cluster
watch
:
true
env
:
NODE_ENV
:
development
env_production
:
NODE_ENV
:
production
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment