ruby-node-alpine icon indicating copy to clipboard operation
ruby-node-alpine copied to clipboard

Ruby + Node alpine images

ruby-node-alpine

Simple Dockerfile for building Ruby + Node alpine images for custom versions.

Why is this topic so complicated?

Images available on Docker Hub (currently on free tier with limited pulls, consider supporting).

docker run thisismydesign/ruby-node-alpine:3.0.2-16.13.0-alpine /bin/sh -c "ruby --version && node --version"

Available versions (defined in the GitHub Actions workflow):

  • Ruby: [3.0.0, 3.0.1, 3.0.2, 3.0.3]
  • Node: [16.13.0, 16.13.1]

Versions are easily extendable by opening a PR or forking the repo and pushing images to your own registry.

Usage

export RUBY_VERSION=3.0.3
export NODE_VERSION=16.13.0
docker build . --build-arg RUBY_VERSION=$RUBY_VERSION --build-arg NODE_VERSION=$NODE_VERSION --tag ruby-node-alpine:$RUBY_VERSION-$NODE_VERSION

docker run --rm ruby-node-alpine:$RUBY_VERSION-$NODE_VERSION /bin/sh -c "ruby --version && node --version && yarn --version"