From 6b5fbfa23d2d93e6ca6fbd179e7db7f83ae9aba6 Mon Sep 17 00:00:00 2001 From: Ben Hardill Date: Fri, 1 Jan 2021 17:46:52 +0000 Subject: [PATCH] Change the default port to be 80 --- Dockerfile | 2 +- index.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 4015ab0..ab4a48c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,6 @@ COPY package*.json ./ RUN npm install --no-fund --no-update-notifier COPY . . -EXPOSE 3000 +EXPOSE 80 CMD [ "node", "index.js" ] \ No newline at end of file diff --git a/index.js b/index.js index 47ec173..cc4b6af 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const bodyParser = require('body-parser') const superagent = require('superagent') -const port = (process.env.PORT || 3000) +const port = (process.env.PORT || 80) const listenHost = (process.env.HOST || '0.0.0.0') const registryHost = (process.env.REGISTRY || 'registry:4873') const keyword = "node-red"