From 7ebee9a531ae14f2887d76508213deddb731ea93 Mon Sep 17 00:00:00 2001 From: startxfr Date: Wed, 10 Feb 2016 01:10:46 +0100 Subject: update nodejs --- Services/nodejs/Dockerfile | 2 +- Services/nodejs/app.js | 2 -- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3