summaryrefslogtreecommitdiff
path: root/docker/docs-build/Dockerfile
blob: 5bcddce66069d465ed5f25aeb88f95e258dd1954 (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
# Stage 1

FROM debian:bookworm-slim AS repo

RUN apt update \
 && apt install --no-install-recommends -y ca-certificates git

RUN git clone --branch=master --depth=1 https://git.taler.net/docs.git

# Final image

FROM sphinxdoc/sphinx-latexpdf

# Copy content from one container to the other

WORKDIR /docs

COPY --from=repo /docs .

# Install dependencies

RUN python3 -m pip install --no-cache-dir recommonmark

# Compile /docs/*

ENTRYPOINT ["make", "BUILDDIR=/output", "-C", "/docs", "html", "latexpdf"]