Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
34 lines (22 sloc) 1023 Bytes
FROM openshift/base-centos7
# This image provides a Ruby 2.0 environment you can use to run your Ruby
# applications.
MAINTAINER SoftwareCollections.org <sclorg@redhat.com>
EXPOSE 8080
ENV RUBY_VERSION 2.0
LABEL io.k8s.description="Platform for building and running Ruby 2.0 applications" \
io.k8s.display-name="Ruby 2.0" \
io.openshift.expose-services="8080:http" \
io.openshift.tags="builder,ruby,ruby20"
RUN INSTALL_PKGS="ruby200 ruby200-ruby-devel ruby200-rubygem-rake v8314 ror40-rubygem-bundler nodejs010" && \
yum install -y centos-release-scl && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS && \
yum clean all -y
# Copy the S2I scripts from the specific language image to $STI_SCRIPTS_PATH
COPY ./s2i/bin/ $STI_SCRIPTS_PATH
# Copy extra files to the image.
COPY ./root/ /
RUN chown -R 1001:0 /opt/app-root && chmod -R ug+rwx /opt/app-root
USER 1001
# Set the default CMD to print the usage of the language image
CMD $STI_SCRIPTS_PATH/usage