Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

dockerize-app

brainsiq43MIT2.0.2

CLI tool to launch a docker container and create a Dockerfile for NodeJS applications

docker, dockerfile, dockerize, dockerise, containerize, containerise

readme

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.

changelog

Change Log

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

[2.0.2] - 2015-12-20

  • Dependency updates
  • Fix error output

[2.0.1] - 2015-11-29

  • Change to development scripts and linting fixes
  • No functional change

[2.0.0] - 2015-11-29

  • Automatically builds docker image based on app name in package.json
  • Automatically runs docker container

[1.1.0] - 2015-11-26

  • Source code location in container changed to /usr/local/[app-name]

http://keepachangelog.com