Sign inSign up

techtrashh/ubiruby

By techtrashh

Updated about 1 year ago

Its simple ruby images built from sources based on ubi minimal 9 images.

Image
Languages & frameworks
Developer tools
0

342

techtrashh/ubiruby repository overview

Dockerfile for all of image in this repo

FROM fedora:41 AS builder
ARG RUBY_VERSION=3.3.4
RUN dnf install -y \
    gcc \
    g++ \
    make \
    ruby \
    autoconf \
    bison \
    openssl-devel \
    readline-devel \
    zlib-devel \
    libffi-devel \
    libyaml-devel \
    bzip2-devel \
    gdbm-devel \
    ncurses-devel \
    libedit-devel \
    sqlite-devel \
    libcurl-devel \
    nss-devel \
    tar \
    wget \
    which \
    procps-ng && \
    dnf clean all && \
    rm -rf /var/cache/dnf
ENV RUBY_VERSION=$RUBY_VERSION
WORKDIR /tmp/ruby-build
RUN wget -O ruby.tar.gz --no-check-certificate "https://cache.ruby-lang.org/pub/ruby/${RUBY_VERSION%.*}/ruby-${RUBY_VERSION}.tar.gz" && \
    tar -xzf ruby.tar.gz --strip-components=1 && \
    rm ruby.tar.gz
RUN ./configure --prefix=/usr/local --disable-install-doc
RUN make
RUN make install
RUN rm -rf /tmp/ruby-build
RUN gem install bundler && \
    gem cleanup
FROM redhat/ubi9-minimal:9.6 as ready
RUN microdnf update -y && \
    microdnf install -y \
        openssl \
        libffi \
        readline \
        zlib \
        ca-certificates \
        procps-ng && \
    microdnf clean all && \
    rm -rf /var/cache/yum /var/cache/dnf
COPY --from=builder /usr/local /usr/local
FROM scratch
COPY --from=ready / /
ENV PATH=/usr/local/bin:$PATH
WORKDIR /app
CMD ["ruby", "--version"]

Tag summary

Content type

Image

Digest

sha256:d1e0037a8

Size

95.9 MB

Last updated

about 1 year ago

docker pull techtrashh/ubiruby:3.1.7