jsntv200 / docker-ruby-node

Multistage Ruby + Nodejs Dockerfile
1 stars 2 forks source link

Multistage Alpine Ruby + Node.js

A multistage docker image using the official Docker Hub Ruby and Node.js builds. The image contains pre-installed versions of ruby, bundler, node, npm and yarn.

The default entrypoint is bash.

Default Versions

Supported Build Args

Build an image using Ruby 2.6 & Node 11:

docker build -t my:tag github.com/jsntv200/docker-ruby-node \
  --build-arg RUBY_VERSION=2.6
  --build-arg NODE_VERSION=11

Usage

docker run -it my:tag

Run ruby

docker run -it my:tag irb

Run node

docker run -it my:tag node