0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-11-23 23:49:35 +00:00
crazy-max_diun/hack/docs.Dockerfile
CrazyMax a156aff751
MkDocs Material 8.3.9 (#644)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2022-07-16 03:34:01 +02:00

24 lines
637 B
Docker

# syntax=docker/dockerfile:1
ARG MKDOCS_VERSION="8.3.9"
FROM squidfunk/mkdocs-material:${MKDOCS_VERSION} AS base
RUN apk add --no-cache git git-fast-import openssl \
&& apk add --no-cache --virtual .build gcc musl-dev \
&& pip install --no-cache-dir \
'lunr' \
'markdown-include' \
'mkdocs-awesome-pages-plugin' \
'mkdocs-exclude' \
'mkdocs-git-revision-date-localized-plugin' \
'mkdocs-macros-plugin' \
&& apk del .build gcc musl-dev \
&& rm -rf /tmp/*
FROM base AS generate
RUN --mount=type=bind,target=. \
mkdocs build --strict --site-dir /out
FROM scratch AS release
COPY --from=generate /out /