# SPDX-License-Identifier: MIT
#!BuildTag: bci/ruby:2.5
#!BuildTag: bci/ruby:latest
#!BuildTag: bci/ruby:2.5-%RELEASE%
#!BuildTag: bci/ruby:2
FROM suse/sle15:15.4

MAINTAINER SUSE LLC (https://www.suse.com/)

# Define labels according to https://en.opensuse.org/Building_derived_containers
# labelprefix=com.suse.bci.ruby
LABEL org.opencontainers.image.title="SLE BCI Ruby 2.5 Container Image"
LABEL org.opencontainers.image.description="Ruby 2.5 based on the SLE Base Container Image."
LABEL org.opencontainers.image.version="2.5"
LABEL org.opencontainers.image.url="https://www.suse.com/products/server/"
LABEL org.opencontainers.image.created="%BUILDTIME%"
LABEL org.opencontainers.image.vendor="SUSE LLC"
LABEL org.opensuse.reference="registry.suse.com/bci/ruby:2.5-%RELEASE%"
LABEL org.openbuildservice.disturl="%DISTURL%"
LABEL com.suse.supportlevel="techpreview"
LABEL com.suse.eula="sle-bci"
LABEL com.suse.lifecycle-url="https://www.suse.com/lifecycle"
LABEL com.suse.image-type="sle-bci"
LABEL com.suse.release-stage="released"
# endlabelprefix


RUN set -euo pipefail; zypper -n in --no-recommends ruby2.5 ruby2.5-rubygem-bundler ruby2.5-devel util-linux curl git-core distribution-release gcc-c++ sqlite3-devel make awk timezone; zypper -n clean; rm -rf /var/log/*

ENV LANG="C.UTF-8"
ENV RUBY_VERSION="%%rb_ver%%"
ENV RUBY_MAJOR="%%rb_maj%%"


RUN set -euo pipefail; sed -i 's/--format-executable/--no-format-executable/' /etc/gemrc