1FROM alpine:3.19.1 2 3COPY makeSphinx.sh /makeSphinx.sh 4 5RUN apk add --no-cache python3 py3-pip make bash git openjdk8-jre ttf-dejavu fontconfig \ 6 && chmod 755 /makeSphinx.sh 7RUN adduser -D coreboot 8 9USER coreboot 10ENV VIRTUAL_ENV="/home/coreboot/python3" 11ENV PATH=$VIRTUAL_ENV/bin:$PATH:/home/coreboot/.local/bin 12RUN python3 -m venv $VIRTUAL_ENV && \ 13 echo "source ${VIRTUAL_ENV}/bin/activate" >> /home/coreboot/.bashrc && \ 14 pip3 install --upgrade --no-cache-dir pip && \ 15 pip3 install --no-cache-dir \ 16 jinja2==3.1.3 \ 17 myst-parser==2.0.0 \ 18 sphinx===7.2.6 \ 19 sphinxcontrib-ditaa===1.0.2 \ 20 sphinx_autobuild===2024.2.4 \ 21 sphinx_rtd_theme===2.0.0 22 23ADD https://github.com/stathissideris/ditaa/releases/download/v0.11.0/ditaa-0.11.0-standalone.jar \ 24 /usr/lib/ditaa-0.11.0-standalone.jar 25 26ADD ditaa.sh /usr/bin/ditaa 27 28VOLUME /data-in /data-out 29 30# For Sphinx-autobuild 31# Port 8000 - HTTP server 32# Port 35729 - websockets connection to allow automatic browser reloads after each build 33EXPOSE 8000 35729 34 35ENTRYPOINT ["/bin/bash", "/makeSphinx.sh"] 36CMD [] 37