prepare for npmdocker

This commit is contained in:
Philipp Kunz 2016-07-18 01:35:04 +02:00
parent 4e3446cb2f
commit 0c7cd35448
3 changed files with 6 additions and 6 deletions

View File

@ -3,4 +3,4 @@ RUN mkdir app-node
COPY ./ /app-node/ COPY ./ /app-node/
WORKDIR /app-node WORKDIR /app-node
ENV CI true ENV CI true
CMD ["npmci","install","stable"] CMD ["npmts"]

File diff suppressed because one or more lines are too long

View File

@ -148,14 +148,14 @@ export class Dockersock {
}, },
body:jsonArg body:jsonArg
}; };
console.log(options); //console.log(options);
plugins.request(options,(err, res, body) => { plugins.request(options,(err, res, body) => {
if (!err && res.statusCode == 200) { if (!err && res.statusCode == 200) {
var responseObj = JSON.parse(body); var responseObj = JSON.parse(body);
done.resolve(responseObj); done.resolve(responseObj);
} else { } else {
console.log(err); console.log(err);
//console.log(res); console.log(res);
done.reject(err); done.reject(err);
}; };
}); });