<commit_before># dockerize-node-app

[![Circle CI](https://circleci.com/gh/brainsiq/dockerize-node-app/tree/master.svg?style=svg&circle-token=<KEY>)](https://circleci.com/gh/brainsiq/dockerize-node-app/tree/master)

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

```
# dockerize
cd /path/to/node/app
dockerize

# build and run docker container
docker build -t myapp .
docker run myapp
```

### 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
<commit_msg>Code quotes<commit_after># dockerize-node-app

[![Circle CI](https://circleci.com/gh/brainsiq/dockerize-node-app/tree/master.svg?style=svg&circle-token=<KEY>)](https://circleci.com/gh/brainsiq/dockerize-node-app/tree/master)

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

```
# dockerize
cd /path/to/node/app
dockerize

# build and run docker container
docker build -t myapp .
docker run myapp
```

### 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

{'fraction_non_alphanumeric': 0.11187214611872145, 'fraction_numerical': 0.0, 'mean_word_length': 4.410493827160494, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1707621', 'n_tokens_mistral': 598, 'n_tokens_neox': 553, 'n_words': 183}