aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: d0a7e571686511d0cf3abe7244fb9a1a06b363e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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"]