2023-10-23 19:04:58 +02:00
|
|
|
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2023-11-24 12:49:20 +01:00
|
|
|
FROM archlinux:latest AS build
|
2023-09-15 14:01:36 +02:00
|
|
|
COPY book/ /book
|
|
|
|
WORKDIR /book
|
2023-11-24 12:49:20 +01:00
|
|
|
# fix EPUB rendering: https://github.com/sphinx-doc/sphinx/issues/11598
|
|
|
|
RUN \
|
|
|
|
pacman -Sy --needed --noconfirm archlinux-keyring \
|
|
|
|
&& pacman -Syu --needed --noconfirm epubcheck make patch python-myst-parser python-sphinx \
|
|
|
|
&& patch -Np1 -d /usr/lib/python3.11/site-packages/ -i /book/patches/sphinx-11766.patch \
|
|
|
|
&& make epub html
|
2023-09-15 14:01:36 +02:00
|
|
|
|
|
|
|
FROM scratch
|
|
|
|
COPY --from=build /book/build/html /
|
2023-11-24 12:49:20 +01:00
|
|
|
COPY --from=build /book/build/epub/OpenPGPforapplicationdevelopers.epub /
|