Skip to content

daya/docker-ruby-alpine-therubyracer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-ruby-alpine-therubyracer

This image is based on the official Ruby image for Alpine Linux. It contains therubyracer gem and the libv8 gem installed with a V8 engine that's built against the musl C library that Alpine Linux uses.

If you need a JS runtime in your Ruby app, one can, of course, just install NodeJS in Alpine Linux and ExecJS will just use that. If you'd prefer not to use NodeJS, then you can use this image to base your app on.

Example

docker run -it --rm joenyland/ruby-alpine-therubyracer
irb(main):001:0> require 'v8'
=> true
irb(main):002:0> V8::Context.new.eval 5 * 9
=> 45

Contributing

  • Any issues, please file a new issue here.
  • Happy to accept pull requests: please raise one here.

To Do

  • Supported Ruby versions
  • v8/libv8 versions
  • Why did I create this? Original issue, etc.

About

Alpine Linux based Ruby Docker image with therubyracer gem

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 100.0%