diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-03 14:11:29 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-03 14:11:29 +0100 |
commit | d7713692b18898e09a420a661ae3c491840891ea (patch) | |
tree | 7082a2bf58eb665c75dc29cd10cc291828f821ea | |
parent | 995a0c1221fda4f16488f988254e971d16531f1d (diff) | |
download | s2i-jekyll-d7713692b18898e09a420a661ae3c491840891ea.tar.gz |
tweak dockerfile
-rw-r--r-- | Dockerfile.ubi8 | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Dockerfile.ubi8 b/Dockerfile.ubi8 index abb7f2a..376e4ce 100644 --- a/Dockerfile.ubi8 +++ b/Dockerfile.ubi8 @@ -11,16 +11,24 @@ LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \ io.k8s.display-name="${SUMMARY}" \ io.k8s.description="${DESCRIPTION}" \ io.openshift.expose-services="8080:http" \ - io.openshift.tags="jekyll,static" + io.openshift.tags="jekyll,static" \ + io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" 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" +RUN mkdir -p /opt/app-root;\ + chmod 755 /opt /opt/app-root;\ + useradd -d /opt/app-root/src -u 1001 default;\ + mkdir -p /run/httpd;\ + chmod 777 /run/httpd /etc/httpd/logs;\ + sed -i -e '/Listen/s/^/#/' /etc/httpd/conf/httpd.conf;\ + rm -f /etc/httpd/conf.d/welcome.conf + USER 1001 EXPOSE 8080 |