├── Dockerfile ├── LICENSE └── README.md /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM ruby:2.3.3 2 | MAINTAINER Michael Wallasch 3 | ENV REFRESHED_AT 2017-02-27 4 | 5 | RUN apt-get update -qq && apt-get install -y build-essential 6 | 7 | # for postgres 8 | RUN apt-get install -y libpq-dev 9 | 10 | # for nokogiri 11 | RUN apt-get install -y libxml2-dev libxslt1-dev 12 | 13 | # for capybara-webkit 14 | RUN apt-get install -y libqt4-webkit libqt4-dev xvfb 15 | 16 | # for node 17 | RUN apt-get install -y python python-dev python-pip python-virtualenv 18 | 19 | # cleanup 20 | RUN rm -rf /var/lib/apt/lists/* 21 | 22 | # install nodejs 23 | RUN \ 24 | cd /tmp && \ 25 | wget http://nodejs.org/dist/node-latest.tar.gz && \ 26 | tar xvzf node-latest.tar.gz && \ 27 | rm -f node-latest.tar.gz && \ 28 | cd node-v* && \ 29 | ./configure && \ 30 | CXX="g++ -Wno-unused-local-typedefs" make && \ 31 | CXX="g++ -Wno-unused-local-typedefs" make install && \ 32 | cd /tmp && \ 33 | rm -rf /tmp/node-v* && \ 34 | npm install -g npm && \ 35 | echo '\n# Node.js\nexport PATH="node_modules/.bin:$PATH"' >> /root/.bashrc 36 | 37 | WORKDIR /app 38 | ONBUILD ADD . /app 39 | 40 | CMD ["bash"] 41 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Michael Wallasch 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Ruby + Nodejs Dockerfile 2 | 3 | This repository contains a Dockerfile of Ruby, nodejs and npm for Docker's automated build published to the public Docker Hub Registry. 4 | 5 | ## What's included 6 | - Ruby 2.3.3 7 | - Nodejs (latest) 8 | - npm 9 | 10 | ### Installation 11 | 1. Install [Docker](https://www.docker.com/). 12 | 13 | 2. Download [automated build](https://registry.hub.docker.com/u/mwallasch/docker-ruby-node/) from public [Docker Hub Registry](https://registry.hub.docker.com/): `docker pull mwallasch/docker-ruby-node` 14 | 15 | (alternatively, you can build an image from Dockerfile: `docker build -t="mwallasch/docker-ruby-node" github.com/mwallasch/docker-ruby-node`) 16 | 17 | 18 | ### Usage 19 | 20 | docker run -it --rm mwallasch/docker-ruby-node 21 | 22 | #### Run `ruby` 23 | 24 | docker run -it --rm mwallasch/docker-ruby-node ruby 25 | 26 | #### Run `node` 27 | 28 | docker run -it --rm mwallasch/docker-ruby-node node 29 | --------------------------------------------------------------------------------