Skip to content

Commit e52b05a

Browse files
committed
Update Dockerfile: Add cairo & pngquant
1 parent fa83a09 commit e52b05a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,10 @@ LABEL org.opencontainers.image.authors="dev@kjuly.com" \
55
org.opencontainers.image.source=https://github.com/Kjuly/docker-mkdocs \
66
org.opencontainers.image.description="A tiny Docker image for MkDocs, based on Alpine Linux with Python3."
77

8-
RUN apk add --no-cache py3-pip && \
8+
# The libraries for image processing (cairo, pngquant) are entirely optional,
9+
# and only need to be installed if you want to use the social plugin or the optimize plugin.
10+
# Refter to https://squidfunk.github.io/mkdocs-material/plugins/requirements/image-processing
11+
RUN apk add --no-cache py3-pip cairo pngquant && \
912
python3 -m venv .venv && source .venv/bin/activate \
1013
pip install pip setuptools certifi urllib3 requests idna --upgrade && \
1114
pip install mkdocs && \

0 commit comments

Comments
 (0)