0
0
Fork 0
mirror of https://github.com/crazy-max/diun.git synced 2025-01-12 19:48:12 +00:00
crazy-max_diun/hack/docs.Dockerfile
CrazyMax 3bbe883358
Refactor CI and dev workflow with buildx bake (#247)
* Upload artifacts
* Add image-local target
* Single job for artifacts and image
* Add armv5 artifact

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
2020-12-26 10:30:46 +00:00

23 lines
615 B
Docker

# syntax=docker/dockerfile:1.2
FROM squidfunk/mkdocs-material:6.1.7 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/ /