xref: /aosp_15_r20/external/flashrom/util/docker/flashrom.org/Dockerfile (revision 0d6140be3aa665ecc836e8907834fcd3e3b018fc)
1FROM alpine:3.8
2
3COPY makeSphinx.sh /makeSphinx.sh
4
5ADD https://sourceforge.net/projects/ditaa/files/ditaa/0.9/ditaa0_9.zip/download /tmp/ditaa.zip
6
7RUN apk add --no-cache python3 make bash git openjdk8-jre ttf-dejavu fontconfig \
8 && pip3 install --upgrade --no-cache-dir pip \
9 && pip3 install --no-cache-dir  \
10    sphinx===1.8.3 \
11    sphinx_rtd_theme===0.4.2 \
12    recommonmark===0.5.0 \
13    sphinx_autobuild===0.7.1 \
14    sphinxcontrib-ditaa===0.6 \
15 && chmod 755 /makeSphinx.sh
16RUN cd /tmp \
17 && unzip ditaa.zip \
18 && mv ditaa0_9.jar /usr/lib
19ADD ditaa.sh /usr/bin/ditaa
20
21VOLUME /data-in /data-out
22
23# For Sphinx-autobuild
24# Port 8000 - HTTP server
25# Port 35729 - websockets connection to allow automatic browser reloads after each build
26EXPOSE 8000 35729
27
28ENTRYPOINT ["/bin/bash", "/makeSphinx.sh"]
29CMD []
30