aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2020-03-05 14:43:15 +0100
committerGerd Hoffmann <kraxel@redhat.com>2020-03-05 14:43:15 +0100
commit1de68a1e35d3ed1aca37ef2ef25952b7cfa8fa50 (patch)
tree38a3bad8e63e162c5a3484313c050a56453df473 /Dockerfile
downloads2i-sphinx-1de68a1e35d3ed1aca37ef2ef25952b7cfa8fa50.tar.gz
initial commit
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 29 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..d0a7e57
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,29 @@
+FROM kraxel/s2i-base-httpd
+
+ENV SUMMARY="sphinx documentation" \
+ DESCRIPTION="Platform for building sphinx documentation"
+
+LABEL maintainer="Gerd Hoffmann <kraxel@redhat.com>" \
+ summary="${SUMMARY}" \
+ description="${DESCRIPTION}" \
+ io.k8s.display-name="${SUMMARY}" \
+ io.k8s.description="${DESCRIPTION}" \
+ io.openshift.tags="docs,sphinx"
+
+USER root
+
+RUN source /etc/profile.d/proxy.sh; \
+ dnf update -y && \
+ dnf install -y make gcc gcc-c++ binutils bc \
+ glibc-devel openssl-devel \
+ graphviz which texlive-tetex \
+ python36 python3-pip && \
+ dnf clean all -y
+
+COPY ./s2i/bin/ /usr/libexec/s2i
+
+RUN pip3 install sphinx sphinx-rtd-theme
+
+USER 1001
+
+CMD ["/usr/libexec/s2i/usage"]