Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

dockerize-app

2.0.2 • Public • Published

dockerize-node-app

Circle CI

CLI tool to generate a Dockerfile for running a NodeJS application, and starting a Docker container from it.

Installation

npm install -g dockerize-app

Useage

# creates dockerfile, builds image and runs container
cd /path/to/node/app
dockerize

Dockerfile generation

  • Sets node:x.x.x as the base image, where x.x.x is the latest version (using https://semver.io), which satisifies:
  • .nvmrc file
  • OR engines.node property from package.json
  • Adds source code into docker image
  • Runs npm install
  • Sets start command as npm start or node [entrypoint.js] depending on package.json settings

See issues for upcoming features.

install

npm i dockerize-app

Downloadsweekly downloads

7

version

2.0.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability