From b71c8ff9dfa19d3021c2f46306d7bd3350a0ef22 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Sun, 15 Sep 2019 23:13:27 +0200 Subject: ubi7: add scl enable --- Dockerfile.ubi7 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile.ubi7 b/Dockerfile.ubi7 index 1b84880..001fae2 100644 --- a/Dockerfile.ubi7 +++ b/Dockerfile.ubi7 @@ -12,13 +12,15 @@ LABEL maintainer="Gerd Hoffmann " \ USER root -RUN rpm -qa "*ruby*" - RUN for file in /usr/libexec/s2i/*; do cp -v $file ${file}.httpd; done COPY ./s2i/bin/ /usr/libexec/s2i +COPY ./etc/scl_enable /etc/ COPY ./etc/jekyll-documentroot.conf /etc/httpd/conf.d/ -RUN gem install jekyll --version "= $JEKYLL_VERSION" +ENV BASH_ENV="/etc/scl_enable" + +RUN source /etc/scl_enable; \ + gem install jekyll --version "= $JEKYLL_VERSION" USER 1001 EXPOSE 8080 -- cgit