From faad2353b3be80d456d2e1f5cf55a8100e7d36c6 Mon Sep 17 00:00:00 2001 From: Pamplemousse Date: Sun, 13 Nov 2016 16:57:37 +0100 Subject: [PATCH] Do not use priviledge port * make the app on 8000 instead of 80 * update the Dockerfile and README accordingly --- Dockerfile | 2 +- README.md | 2 +- app.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6fd6abf..dcd08a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,4 +2,4 @@ FROM node:6-onbuild RUN npm run build -EXPOSE 80 +EXPOSE 8000 diff --git a/README.md b/README.md index 710ec1e..3c1bb49 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,6 @@ npm run build docker run \ --name xaviermaso.com \ -e NODE_ENV=production \ - -p 8080:80 \ + -p 8080:8000 \ pamplemousse/xaviermaso.com ``` diff --git a/app.js b/app.js index 83ec99f..36c25f1 100644 --- a/app.js +++ b/app.js @@ -8,7 +8,7 @@ var bodyParser = require('body-parser') var app = express() -var server = app.listen(80, function () { +var server = app.listen(8000, function () { console.log('Listening on port %d', server.address().port) })