Dockerfile
1 FROM alpine:3.19 2 3 COPY makeSphinx.sh /makeSphinx.sh 4 5 RUN \ 6 apk update && \ 7 apk upgrade --no-cache && \ 8 apk add --no-cache \ 9 python3 \ 10 py3-pip \ 11 make \ 12 git \ 13 ttf-dejavu \ 14 fontconfig \ 15 && chmod 755 /makeSphinx.sh 16 17 RUN adduser -D coreboot 18 RUN \ 19 mkdir /data-in /data-out && \ 20 chown -R coreboot:coreboot /data-in /data-out 21 22 USER coreboot 23 24 ENV VIRTUAL_ENV="/home/coreboot/python3" 25 26 RUN \ 27 python3 -m venv $VIRTUAL_ENV && \ 28 source ${VIRTUAL_ENV}/bin/activate && \ 29 pip3 install --upgrade --no-cache-dir pip && \ 30 pip3 install --no-cache-dir \ 31 jinja2==3.1.3 \ 32 myst-parser==2.0.0 \ 33 sphinx===7.2.6 \ 34 sphinx_autobuild===2024.2.4 \ 35 sphinx_rtd_theme===2.0.0 36 37 RUN git config --global --add safe.directory /data-in 38 39 # For Sphinx-autobuild 40 # Port 8000 - HTTP server 41 # Port 35729 - websockets connection to allow automatic browser reloads after each build 42 EXPOSE 8000 35729 43 44 ENTRYPOINT [ "/makeSphinx.sh" ] 45 CMD []