blob: d0c32c953c0d81193a1e19d6d845ba00b8c3760d [file] [log] [blame]
Nicholas Chin9203e252024-02-05 13:17:01 -07001FROM alpine:3.19.1
Tom Hillerfcca6172018-08-18 19:39:55 -04002
3COPY makeSphinx.sh /makeSphinx.sh
4
Nicholas Chin2fe63a12023-02-22 11:55:22 -07005RUN apk add --no-cache python3 py3-pip make bash git openjdk8-jre ttf-dejavu fontconfig \
Nicholas Chinaf68bf22024-02-05 12:59:16 -07006 && 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 \
Nicholas Chin9203e252024-02-05 13:17:01 -070016 jinja2==3.1.3 \
17 recommonmark===0.7.1 \
18 myst-parser==2.0.0 \
19 sphinx===7.2.6 \
Nicholas Chin2fe63a12023-02-22 11:55:22 -070020 sphinxcontrib-ditaa===1.0.2 \
Nicholas Chin9203e252024-02-05 13:17:01 -070021 sphinx_autobuild===2024.2.4 \
22 sphinx_rtd_theme===2.0.0
Martin Rothb3f91b72022-05-23 16:04:38 -060023
Nicholas Chin2fe63a12023-02-22 11:55:22 -070024ADD https://github.com/stathissideris/ditaa/releases/download/v0.11.0/ditaa-0.11.0-standalone.jar \
25 /usr/lib/ditaa-0.11.0-standalone.jar
26
Patrick Georgia73317e2019-12-10 20:27:38 +010027ADD ditaa.sh /usr/bin/ditaa
Tom Hillerfcca6172018-08-18 19:39:55 -040028
Patrick Georgia2faac22018-04-26 14:29:20 +020029VOLUME /data-in /data-out
Tom Hillerfcca6172018-08-18 19:39:55 -040030
31# For Sphinx-autobuild
32# Port 8000 - HTTP server
33# Port 35729 - websockets connection to allow automatic browser reloads after each build
34EXPOSE 8000 35729
35
36ENTRYPOINT ["/bin/bash", "/makeSphinx.sh"]
37CMD []