aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 209a1f562b0224c625e51c7c0438079380e6d9f1 (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 registry.gitlab.com/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"]