File: Dockerfile

package info (click to toggle)
coreboot 25.09%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 217,084 kB
  • sloc: ansic: 1,685,313; sh: 15,803; python: 11,200; perl: 10,186; asm: 8,519; makefile: 5,179; cpp: 4,724; pascal: 2,327; ada: 1,985; yacc: 1,264; lex: 731; sed: 75; ruby: 5; lisp: 5; awk: 4
file content (45 lines) | stat: -rw-r--r-- 926 bytes parent folder | download | duplicates (2)
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
43
44
45
FROM alpine:3.19

COPY makeSphinx.sh /makeSphinx.sh

RUN \
	apk update && \
	apk upgrade --no-cache && \
	apk add --no-cache \
		python3 \
		py3-pip \
		make \
		git \
		ttf-dejavu \
		fontconfig \
	&& chmod 755 /makeSphinx.sh

RUN adduser -D coreboot
RUN \
	mkdir /data-in /data-out && \
	chown -R coreboot:coreboot /data-in /data-out

USER coreboot

ENV VIRTUAL_ENV="/home/coreboot/python3"

RUN \
	python3 -m venv $VIRTUAL_ENV && \
	source ${VIRTUAL_ENV}/bin/activate && \
	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

RUN git config --global --add safe.directory /data-in

# For Sphinx-autobuild
# Port 8000 - HTTP server
# Port 35729 - websockets connection to allow automatic browser reloads after each build
EXPOSE 8000 35729

ENTRYPOINT [ "/makeSphinx.sh" ]
CMD []