mirror of
https://github.com/crazy-max/diun.git
synced 2024-11-23 23:49:35 +00:00
a156aff751
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
24 lines
637 B
Docker
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 /
|