# ned-build-image

> Builds a docker image for running a node application developed with ned.

Latest version **0.0.2** (published 2016-10-23) · VOL license · 0 weekly downloads

## Install

```sh
npm install ned-build-image
pnpm add ned-build-image
yarn add ned-build-image
bun add ned-build-image
```

Provides the command `ned-build-image`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-10-23 |
| First published | 2016-10-19 |
| Weekly downloads | 0 |
| License | VOL |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Johnny Hauser |
| Maintainers | m59 |

## Links

- npm: https://www.npmjs.com/package/ned-build-image
- Repository: https://github.com/m59peacemaker/ned-build-image
- Homepage: https://github.com/m59peacemaker/ned-build-image#readme
- Issues: https://github.com/m59peacemaker/ned-build-image/issues
- npm.io page: https://npm.io/package/ned-build-image

## Dependencies (5)

- [rimraf](https://npm.io/package/rimraf.md) ^2.5.4
- [uuid-v4](https://npm.io/package/uuid-v4.md) ^0.1.0
- [download](https://npm.io/package/download.md) ^5.0.2
- [denodeify](https://npm.io/package/denodeify.md) ^1.2.1
- [fs-promise](https://npm.io/package/fs-promise.md) ^0.5.0

## Recent versions

- 0.0.2 (latest) — 2016-10-23
- 0.0.0 — 2016-10-19

## README

# ned-build-image

Builds a docker image for running a node application developed with [ned](https://www.npmjs.com/package/ned).

## install

```sh
npm install ned-build-image
```

## cli usage

```sh
ned-build-image <mode>
```

## API

### `buildImage(pathToApp, mode)`

- `pathToApp: string` path to node application
- `mode: string`
  - `'dev'` build image tagged `ned-app-dev` for development.
  - `'prod' build image tagged `ned`app-prod` for production.

## Dockerfile

If there is a `Dockerfile` in the app root, it will be built and used as the base image. It must have the following installed:

- node >= 6
- npm
- python
- make
- g++

## dev image

### run

```sh
docker run -it --rm \
  -v $PWD:/app \
  --user $(id -u) \
  ned-app-dev
```

### CMD

- watches `./src` for changes
- lints app
- transpiles app
- runs app and tests

```sh
ned dev -ltw
```

### volumes

### `/app`

Mount the node application here. `./src` will be transpiled and output to `./build` when files in `./src` change.

## prod image

Contains the transpiled app under `/app/build` ready for execution.

### run

```sh
docker run -it ned-app-prod
```

### CMD

The default command just executes the app.

---
_Source: https://npm.io/package/ned-build-image · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
