Public | Automated Build

Last pushed: 6 days ago
Short Description
lightweight Ruby Docker base images
Full Description

Versions

Tag Ruby Base image Size
latest 2.3.1 ubuntu:xenial
xenial 2.3.1 ubuntu:xenial
alpine 2.4.1 alpine:latest

Building from source

git clone https://github.com/SmartFinn/Dockerfiles.git
cd Dockerfiles/ruby/<tag>
make build

Usage

Ubuntu based build

FROM smartfinn/ruby:xenial

ENV DEBIAN_FRONTEND=noninteractive

RUN BUILD_DEPS="build-essential ruby-dev" \
 && apt-get update \
 && apt-get install -y $BUILD_DEPS \
 && gem install --no-rdoc --no-ri <packages> \
 && apt-get purge -y --auto-remove $BUILD_DEPS \
 && rm -f /var/lib/apt/lists/*.*

Alpine based build

FROM smartfinn/ruby:alpine

RUN apk --no-cache add --virtual .build-deps build-base ruby-dev \
 && gem install --no-rdoc --no-ri <packages> \
 && apk --no-cache del .build-deps
Docker Pull Command
Owner
smartfinn
Source Repository