We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 022cd8e commit 64e9a49Copy full SHA for 64e9a49
Dockerfile
@@ -23,6 +23,9 @@ FROM python:3.8.1-alpine3.11
23
# Build-time flags
24
ARG WITH_PLUGINS=true
25
26
+# Packages directory
27
+ENV PACKAGES=/usr/local/lib/python3.8/site-packages
28
+
29
# Set build directory
30
WORKDIR /tmp
31
@@ -49,7 +52,13 @@ RUN \
49
52
'mkdocs-redirects>=1.0'; \
50
53
fi \
51
54
&& apk del .build gcc musl-dev \
- && rm -rf /usr/local/lib/python3.8/site-packages/mkdocs/themes/*/* \
55
+ && \
56
+ for theme in mkdocs readthedocs; do \
57
+ rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
58
+ ln -s \
59
+ ${PACKAGES}/material \
60
+ ${PACKAGES}/mkdocs/themes/$theme; \
61
+ done \
62
&& rm -rf /tmp/*
63
64
# Set working directory
0 commit comments