summaryrefslogtreecommitdiffstats
path: root/Services/nodejs
diff options
context:
space:
mode:
Diffstat (limited to 'Services/nodejs')
-rw-r--r--Services/nodejs/Dockerfile2
-rw-r--r--Services/nodejs/app.js2
2 files changed, 1 insertions, 3 deletions
diff --git a/Services/nodejs/Dockerfile b/Services/nodejs/Dockerfile
index 2f9e8f5..8dee3c3 100644
--- a/Services/nodejs/Dockerfile
+++ b/Services/nodejs/Dockerfile
@@ -15,8 +15,8 @@ RUN chmod 775 /bin/run.sh && \
mkdir -p $DATA_PATH && \
mkdir -p $LOG_PATH && \
touch $STARTUPLOG
-COPY *.json $APP_PATH/
COPY *.js $APP_PATH/
+COPY *.json $APP_PATH/
RUN cd $APP_PATH && npm install -production
EXPOSE 8000
diff --git a/Services/nodejs/app.js b/Services/nodejs/app.js
index 6a0da10..ea1bcca 100644
--- a/Services/nodejs/app.js
+++ b/Services/nodejs/app.js
@@ -1,10 +1,8 @@
// Load the http module to create an http server.
var http = require('http');
-
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello World\n");
});
server.listen(8000);
-
console.log("Server is running"); \ No newline at end of file