mirror of
https://codeberg.org/openpgp/notes.git
synced 2024-11-21 15:12:06 +01:00
15 lines
620 B
Docker
15 lines
620 B
Docker
# SPDX-FileCopyrightText: 2023 The "Notes on OpenPGP" project
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
FROM archlinux:latest AS build
|
|
COPY book/ /book
|
|
WORKDIR /book
|
|
# fix EPUB rendering: https://github.com/sphinx-doc/sphinx/issues/11598
|
|
RUN \
|
|
pacman -Sy --needed --noconfirm archlinux-keyring \
|
|
&& pacman -Syu --needed --noconfirm inkscape make noto-fonts patch python-myst-parser python-sphinx python-sphinxext-opengraph python-sphinx-sitemap ttf-montserrat \
|
|
&& make epub html
|
|
|
|
FROM scratch
|
|
COPY --from=build /book/build/html /
|
|
COPY --from=build --chown=644 /book/build/epub/OpenPGP_for_application_developers.epub /
|