github.com/cilium/cilium@v1.16.2/Documentation/Dockerfile (about) 1 # Python version should match the one in use in Read The Docs 2 FROM docker.io/library/python:3.11-alpine3.17 AS docs-base 3 4 LABEL maintainer="maintainer@cilium.io" 5 6 RUN apk add --no-cache --virtual --update \ 7 aspell-en \ 8 nodejs \ 9 npm \ 10 bash \ 11 ca-certificates \ 12 enchant2 \ 13 enchant2-dev \ 14 git \ 15 libc6-compat \ 16 py-pip \ 17 python3 \ 18 py3-sphinx \ 19 gcc \ 20 musl-dev \ 21 && true 22 23 FROM docs-base AS docs-builder 24 ADD ./requirements.txt /tmp/requirements.txt 25 RUN pip install -r /tmp/requirements.txt 26 27 ENV HOME=/tmp 28 ARG READTHEDOCS_VERSION 29 ENV READTHEDOCS_VERSION=$READTHEDOCS_VERSION 30 ENV MAKE_GIT_REPO_SAFE=1 31 32 ## Workaround odd behaviour of sphinx versionwarning extension. It wants to 33 ## write runtime data inside a system directory. 34 ## We do rely on this extension, so we cannot just drop it. 35 RUN install -m 0777 -d /usr/local/lib/python3.11/site-packages/versionwarning/_static/data