Nicholas Chin | 9203e25 | 2024-02-05 13:17:01 -0700 | [diff] [blame^] | 1 | FROM alpine:3.19.1 |
Tom Hiller | fcca617 | 2018-08-18 19:39:55 -0400 | [diff] [blame] | 2 | |
| 3 | COPY makeSphinx.sh /makeSphinx.sh |
| 4 | |
Nicholas Chin | 2fe63a1 | 2023-02-22 11:55:22 -0700 | [diff] [blame] | 5 | RUN apk add --no-cache python3 py3-pip make bash git openjdk8-jre ttf-dejavu fontconfig \ |
Nicholas Chin | af68bf2 | 2024-02-05 12:59:16 -0700 | [diff] [blame] | 6 | && chmod 755 /makeSphinx.sh |
| 7 | RUN adduser -D coreboot |
| 8 | |
| 9 | USER coreboot |
| 10 | ENV VIRTUAL_ENV="/home/coreboot/python3" |
| 11 | ENV PATH=$VIRTUAL_ENV/bin:$PATH:/home/coreboot/.local/bin |
| 12 | RUN 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 Chin | 9203e25 | 2024-02-05 13:17:01 -0700 | [diff] [blame^] | 16 | jinja2==3.1.3 \ |
| 17 | recommonmark===0.7.1 \ |
| 18 | myst-parser==2.0.0 \ |
| 19 | sphinx===7.2.6 \ |
Nicholas Chin | 2fe63a1 | 2023-02-22 11:55:22 -0700 | [diff] [blame] | 20 | sphinxcontrib-ditaa===1.0.2 \ |
Nicholas Chin | 9203e25 | 2024-02-05 13:17:01 -0700 | [diff] [blame^] | 21 | sphinx_autobuild===2024.2.4 \ |
| 22 | sphinx_rtd_theme===2.0.0 |
Martin Roth | b3f91b7 | 2022-05-23 16:04:38 -0600 | [diff] [blame] | 23 | |
Nicholas Chin | 2fe63a1 | 2023-02-22 11:55:22 -0700 | [diff] [blame] | 24 | ADD 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 Georgi | a73317e | 2019-12-10 20:27:38 +0100 | [diff] [blame] | 27 | ADD ditaa.sh /usr/bin/ditaa |
Tom Hiller | fcca617 | 2018-08-18 19:39:55 -0400 | [diff] [blame] | 28 | |
Patrick Georgi | a2faac2 | 2018-04-26 14:29:20 +0200 | [diff] [blame] | 29 | VOLUME /data-in /data-out |
Tom Hiller | fcca617 | 2018-08-18 19:39:55 -0400 | [diff] [blame] | 30 | |
| 31 | # For Sphinx-autobuild |
| 32 | # Port 8000 - HTTP server |
| 33 | # Port 35729 - websockets connection to allow automatic browser reloads after each build |
| 34 | EXPOSE 8000 35729 |
| 35 | |
| 36 | ENTRYPOINT ["/bin/bash", "/makeSphinx.sh"] |
| 37 | CMD [] |