FROM sphinxdoc/sphinx AS build
RUN pip install myst-parser
COPY book/ /book
WORKDIR /book
RUN make html

FROM scratch
COPY --from=build /book/build/html /