Skip to content

84hero/docker-cnpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

FROM node:12-alpine

Example

  • npm install
cd workdir
docker run --rm -v $(pwd):/app cnpm install

  • npm run build

docker run --rm -v $(pwd):/app 84hero/cnpm npm run build

  • Run by specified version

docker run --rm -v $(pwd):/app 84hero/cnpm:12 cnpm install

OR 

docker run --rm -v $(pwd):/app 84hero/cnpm:8 cnpm install