Sign inSign up

ifpironimages/ruby-build

By ifpironimages

•Updated over 3 years ago

A minimal Ruby 3.1.3 environment for building (bundle install)

Image
0

1.2K

ifpironimages/ruby-build repository overview

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 includes postgres support as a library (i.e. not the Postgres server, but just library code to compile against)

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

It installs Ruby 2.3.7 and Bundler 1.17.3

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


FROM alpine:3.4

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

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

CMD ["/bin/bash"]

Tag summary

Content type

Image

Digest

sha256:7f756a077…

Size

216.6 MB

Last updated

over 3 years ago

docker pull ifpironimages/ruby-build