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