aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-09-15 23:13:27 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-09-15 23:13:27 +0200
commitb71c8ff9dfa19d3021c2f46306d7bd3350a0ef22 (patch)
tree5612d34c283188c1ec358d289026ec886b7ad1fa
parentff6e477eefcd82c7eb00f4c2c2999fede8088f9a (diff)
downloads2i-jekyll-b71c8ff9dfa19d3021c2f46306d7bd3350a0ef22.tar.gz
ubi7: add scl enable
-rw-r--r--Dockerfile.ubi78
1 files 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 <kraxel@redhat.com>" \
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