FROM node:12-alpine
WORKDIR /app
COPY . .
RUN npm install
CMD ["npm", "start"]
module.exports = {
apps: [
{
name: 'API',
script: './bin/www',
instances: 1,
autorestart: true,
exec_mode: 'cluster',
max_memory_restart: '1G',
},
],
};