Skip to content

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

License

Notifications You must be signed in to change notification settings

beenotung/gen-dockerfile-install

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gen-dockerfile-install

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

npm Package Version

Installation

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

# 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

This is free, libre, and open-source software. It comes down to four essential freedoms [ref]:

  • 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published