0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-02-04 20:18:31 +00:00
crazy-max_diun/hack/docs.Dockerfile
2021-01-11 00:59:39 +01:00

23 lines
615 B
Docker

# syntax=docker/dockerfile:1.2
FROM squidfunk/mkdocs-material:6.2.4 AS base
RUN apk add --no-cache \
git \
git-fast-import \
openssh \
&& apk add --no-cache --virtual .build gcc musl-dev \
&& pip install --no-cache-dir \
'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 /tmp/site
FROM scratch AS release
COPY --from=generate /tmp/site/ /