Skip to content

Commit

Permalink
Add Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
chadfawcett committed Oct 13, 2016
1 parent 19f304d commit 4ed5cf5
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
FROM node:4.2

EXPOSE 8000

WORKDIR /usr/src/app
COPY . /usr/src/app
RUN npm install

CMD ["node", "server.js"]
6 changes: 6 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,9 @@ var server = app.listen(config.get('PORT') || 8000, function () {

console.log('mailhound listening at http://%s:%s', host, port);
});

process.on('SIGTERM', function() {
server.close(function() {
process.exit(0)
})
})

0 comments on commit 4ed5cf5

Please sign in to comment.