Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/beenotung/gen-dockerfile-install

auto generate npm install script for each dependency in Dockerfile for caching
https://github.com/beenotung/gen-dockerfile-install

dependency-management dockerfile npm npm-scripts

Last synced: 5 days ago
JSON representation

auto generate npm install script for each dependency in Dockerfile for caching

Awesome Lists containing this project

README

        

# gen-dockerfile-install

auto generate npm install script for each dependency in Dockerfile for caching

[![npm Package Version](https://img.shields.io/npm/v/gen-dockerfile-install.svg?maxAge=3600)](https://www.npmjs.com/package/gen-dockerfile-install)

## Installation
```bash
npm i -g gen-dockerfile-install
```

You can install it with npm directly (no need to reach for yarn or pnpm because this package does not depend on other packages).

If you do not prefer to install it globally, you can run it with `npx gen-dockerfile-install`, which will download and execute it without installation.

## Usage Example
```bash
# init the Dockerfile
> gen-dockerfile-install --init

# update Dockerfile according to the dependency list in package.json
> gen-dockerfile-install

# install new packages in batch
> COMPACT_INSTALL=true gen-dockerfile-install
```

## License

This project is licensed with [BSD-2-Clause](./LICENSE)

This is free, libre, and open-source software. It comes down to four essential freedoms [[ref]](https://seirdy.one/2021/01/27/whatsapp-and-the-domestication-of-users.html#fnref:2):

- The freedom to run the program as you wish, for any purpose
- The freedom to study how the program works, and change it so it does your computing as you wish
- The freedom to redistribute copies so you can help others
- The freedom to distribute copies of your modified versions to others