Create and clone a github repository
git clone https://github.com/youruser/yourproject.git
cd yourproject
Run container
docker run -it -d -p 3000:3000 --name=yourproject -v $PWD:/project coagus/node
Start the project
docker exec -it yourproject /bin/sh
/project # npm init
...
package name: (project) yourproject
version: (1.0.0)
description: your project description
entry point: (index.js)
test command:
git repository: (https://github.com/youruser/yourproject.git)
keywords:
author: Your name
license: (ISC)
About to write to /project/package.json:
{
"name": "yourproject",
"version": "1.0.0",
"description": "your project description",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/youruser/yourproject.git"
},
"author": "Your name",
"license": "ISC",
"bugs": {
"url": "https://github.com/youruser/yourproject/issues"
},
"homepage": "https://github.com/youruser/yourproject#readme"
}
Is this OK? (yes)
/project #
Content type
Image
Digest
Size
15.9 MB
Last updated
over 7 years ago
docker pull coagus/node