Public Repository

Last pushed: 2 years ago
Short Description
A minimal Ruby 2.2.3 environment for building (bundle install)
Full Description

This Dockerfile builds a lightweight linux image based on Alpine Linux (5MB to start) with all the tools needed to build a Ruby project (i.e. compile/install gems).

It is currently customized to projects I am working on, so it may not have all the necessary libraries.

NOTE: This is for building. For running a Ruby project in a docker image use: drsharp/ruby-run


FROM alpine:3.2

RUN apk update && apk upgrade
RUN apk add build-base curl-dev bash libffi-dev libxml2-dev libxslt-dev readline-dev
RUN apk add ruby ruby-dev ruby-io-console ruby-bundler ruby-irb

RUN gem install --no-ri --no-rdoc bundler
RUN bundle config build.nokogiri --use-system-libraries
RUN rm -rf /var/cache/apk/*

CMD ["/bin/bash"]

Docker Pull Command
Owner
drsharp

Comments (0)