aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2019-09-15 22:42:12 +0200
committerGerd Hoffmann <kraxel@redhat.com>2019-09-15 22:42:12 +0200
commit85cf4c997b257dbc6621c5fc9020a7834677787e (patch)
tree917723f7e2faa0ec85e4e3e1a162b9b8a254a0e6
parentcf9171e61601ec196f63256655995179739dbe1d (diff)
downloads2i-jekyll-85cf4c997b257dbc6621c5fc9020a7834677787e.tar.gz
add ubi7 version
-rw-r--r--Dockerfile.ubi724
1 files changed, 24 insertions, 0 deletions
diff --git a/Dockerfile.ubi7 b/Dockerfile.ubi7
new file mode 100644
index 0000000..6586a9b
--- /dev/null
+++ b/Dockerfile.ubi7
@@ -0,0 +1,24 @@
+# kraxel/s2i-jekyll
+FROM registry.access.redhat.com/ubi7/ruby-25
+
+ENV RH_RUBY_VERSION="25" \
+ JEKYLL_VERSION="3.8.5"
+
+LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
+ io.k8s.description="Platform for building static jekyll sites" \
+ io.k8s.display-name="Jekyll ${JEKYLL_VERSION}" \
+ io.openshift.expose-services="8080:http" \
+ io.openshift.tags="jekyll,static"
+
+USER root
+
+RUN for file in /usr/libexec/s2i/*; do cp -v $file ${file}.httpd; done
+COPY ./s2i/bin/ /usr/libexec/s2i
+COPY ./etc/jekyll-documentroot.conf /etc/httpd/conf.d/
+
+RUN gem install jekyll --version "= $JEKYLL_VERSION"
+
+USER 1001
+EXPOSE 8080
+
+CMD ["/usr/libexec/s2i/usage"]