Sign inSign up

ifpironimages/ruby-run

By ifpironimages

•Updated over 3 years ago

A super-minimal Ruby 3.1.3 environment for running Ruby code/workers

Image
0

100K+

ifpironimages/ruby-run repository overview

This Dockerfile builds a lightweight linux image based on Alpine Linux (5MB to start) with just the run-time tools needed to ruby a Ruby project/worker.

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 running. For building a Ruby project in a docker image use: ifpironimages/ruby-build


FROM alpine:3.4

RUN apk update && apk upgrade RUN apk add curl libxslt libpq RUN apk add ruby ruby-bigdecimal ruby-io-console ruby-bundler

RUN gem install --no-ri --no-rdoc bundler -v 1.17.3 RUN rm -rf /var/cache/apk/*

CMD ["/bin/sh"]

Tag summary

Content type

Image

Digest

sha256:74f4ca726…

Size

14.8 MB

Last updated

over 3 years ago

docker pull ifpironimages/ruby-run