ci(docker): 👷 add custom mdkocs-material Docker image for social previews in GitLab CI

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2023-03-24 17:26:49 +00:00
parent 787b292240
commit e4d61e9f51

14
docker/Dockerfile Normal file
View file

@ -0,0 +1,14 @@
FROM squidfunk/mkdocs-material
# https://squidfunk.github.io/mkdocs-material/setup/setting-up-social-cards/#linux but for Alpine
RUN apk add \
cairo-dev \
freetype-dev \
libffi-dev \
jpeg-dev \
libpng-dev \
zlib-dev
RUN pip3 install \
mkdocs-git-revision-date-localized-plugin \
pillow \
cairosvg