diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-05 12:33:19 +0100 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-02-05 12:33:19 +0100 |
commit | 45e4e1e0a3ae5a68cfaaa85a548c38085809734d (patch) | |
tree | 2bd8ada6881bf635ba5956ab4099272d068eda5d /Dockerfile | |
download | s2i-base-httpd-45e4e1e0a3ae5a68cfaaa85a548c38085809734d.tar.gz |
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..0a0212b --- /dev/null +++ b/Dockerfile @@ -0,0 +1,34 @@ +FROM centos:8 + +ENV SUMMARY="httpd base" \ + DESCRIPTION="base image for httpd s2i images" + +LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \ + summary="${SUMMARY}" \ + description="${DESCRIPTION}" \ + io.k8s.display-name="${SUMMARY}" \ + io.k8s.description="${DESCRIPTION}" \ + io.openshift.expose-services="8080:http" \ + io.openshift.tags="httpd" \ + io.openshift.s2i.scripts-url="image:///usr/libexec/s2i" + +USER root + +RUN dnf update -y && \ + dnf install -y httpd && \ + dnf clean all -y + +COPY ./s2i/bin/ /usr/libexec/s2i +COPY ./etc/*.conf /etc/httpd/conf.d/ +RUN 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 +RUN mkdir -p /opt/app-root;\ + chmod 755 /opt /opt/app-root;\ + useradd -d /opt/app-root/src -u 1001 default + +USER 1001 +EXPOSE 8080 + +CMD ["/usr/libexec/s2i/usage"] |