0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-27 09:09:05 +00:00
crazy-max_diun/hack/docs.Dockerfile
2021-09-05 15:57:11 +02:00

24 lines
628 B
Docker

# syntax=docker/dockerfile:1.2
FROM squidfunk/mkdocs-material:7.2.6 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 /tmp/site
FROM scratch AS release
COPY --from=generate /tmp/site/ /