Intereting Posts

在Docker Containar中的平均应用程序

我试图把平均应用程序在docker包含,但我得到这个错误:

npm ERR! code ENOENT npm ERR! errno 34 npm http 200 https://registry.npmjs.org/mongoose npm http GET https://registry.npmjs.org/mongoose/-/mongoose-4.4.6.tgz npm http 200 https://registry.npmjs.org/mongodb npm http 200 https://registry.npmjs.org/express npm http GET https://registry.npmjs.org/mongodb/-/mongodb-2.0.55.tgz npm http GET https://registry.npmjs.org/express/-/express-4.12.4.tgz npm http 200 https://registry.npmjs.org/mongoose/-/mongoose-4.4.6.tgz npm http 200 https://registry.npmjs.org/express/-/express-4.12.4.tgz npm http 200 https://registry.npmjs.org/mongodb/-/mongodb-2.0.55.tgz npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /src/npm-debug.log npm ERR! not ok code 0 

这是我的package.json

  { "name": "app", "version": "0.0.0", "private": true, "scripts": { "start": "node ./bin/www" }, "dependencies": { "async": "~0.9.0", "body-parser": "~1.12.4", "connect-flash": "~0.1.1", "cookie-parser": "~1.3.5", "debug": "~2.2.0", "ejs": "^2.3.4", "express": "~4.12.4", "jade": "~1.9.2", "mongodb": "~2.0.33", "mongoose": "^4.2.5", "monk": "https://github.com/vccabral/monk.git", } } 

并且包含不被创build,任何build议? 谢谢!

Solutions Collecting From Web of "在Docker Containar中的平均应用程序"

看到节点js站点的这个例子( https://nodejs.org/en/docs/guides/nodejs-docker-webapp/ )只要放入Dockerfile“FROM node:argon”