https://github.com/noonat/docker-ruby-node
A Docker base image with Ruby and Node installed.
https://github.com/noonat/docker-ruby-node
Last synced: 3 months ago
JSON representation
A Docker base image with Ruby and Node installed.
- Host: GitHub
- URL: https://github.com/noonat/docker-ruby-node
- Owner: noonat
- Created: 2015-01-20T15:10:49.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-06-08T00:50:58.000Z (about 7 years ago)
- Last Synced: 2024-10-19T11:30:52.187Z (9 months ago)
- Homepage: https://registry.hub.docker.com/u/noonat/ruby-node/
- Size: 1.95 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ruby + Node Docker Image
This image can be used as a base image for Dockerfiles that require both
Ruby and Node. A Dockerfile building upon this image might look like this:```dockerfile
FROM noonat/ruby-nodeCOPY Gemfile /opt/src/Gemfile
COPY Gemfile.lock /opt/src/Gemfile.lock
COPY package.json /opt/src/package.jsonWORKDIR /opt/src
RUN bundle install && \
npm install
```Ruby 2.5.1 (and bundler) are installed via [rbenv] and [ruby-build]. I've also
included the [rbenv-gem-rehash] plugin..Node 8.11.2 is installed via [nodenv] and [node-build]. If you `npm install -g`,
be sure to `RUN nodenv rehash` to create shims for any scripts installed by NPM.## Why build from source?
I wanted to have more control over what version of Ruby or Node are installed
for different apps. Building from source seemed like an easier way to do that,
instead of trying to track down apt packages for the correct versions.## Want different versions?
If you require a different version of Ruby or Node, you may want to check out
[noonat/rbenv-nodenv].[rbenv]: https://github.com/sstephenson/rbenv
[ruby-build]: https://github.com/sstephenson/ruby-build
[rbenv-gem-rehash]: https://github.com/sstephenson/rbenv-gem-rehash
[nodenv]: https://github.com/OiNutter/nodenv
[node-build]: https://github.com/OiNutter/node-build
[noonat/rbenv-nodenv]: https://registry.hub.docker.com/u/noonat/rbenv-nodenv