Skip to content

boringcodes/dev-runner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dev-runner

Boring Docker Local Development Runner

Features

  • Alpine NodeJS (10, 12, 14, 15, 16)
  • CURL for healthcheck (curl --fail http://${HOST}:${PORT} || exit 1)

Development

Build node.js alpine images

  docker build -t boringcodes/dev-runner:node-10-alpine node/10
  docker build -t boringcodes/dev-runner:node-12-alpine node/12
  docker build -t boringcodes/dev-runner:node-14-alpine node/14   # :node-lts-alpine
  docker build -t boringcodes/dev-runner:node-15-alpine node/15
  docker build -t boringcodes/dev-runner:node-16-alpine node/16   # :node-current-alpine

Usage

Example use of boringcodes/dev-runner:node-current-alpine to run your node.js app

  docker run --rm -d -v $PWD:/app -e HOST=localhost -e PORT=9000 -p 80:9000 boringcodes/dev-runner:node-current-alpine

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

BoringCodes

License

MIT