diff options
| author | startxfr <clarue@startx.fr> | 2016-02-10 01:10:46 +0100 | 
|---|---|---|
| committer | startxfr <clarue@startx.fr> | 2016-02-10 01:10:46 +0100 | 
| commit | 7ebee9a531ae14f2887d76508213deddb731ea93 (patch) | |
| tree | fc37b6d3108888f79649a64afc0baa4ef8f81483 | |
| parent | 15b722730988b24aa31d9e3b6e27b66907b4699d (diff) | |
update nodejs
| -rw-r--r-- | Services/nodejs/Dockerfile | 2 | ||||
| -rw-r--r-- | Services/nodejs/app.js | 2 | 
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 | 
