mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-24 07:30:12 +01:00
Fixed Docker image for default themes
This commit is contained in:
parent
022cd8ec97
commit
64e9a496f6
11
Dockerfile
11
Dockerfile
@ -23,6 +23,9 @@ FROM python:3.8.1-alpine3.11
|
|||||||
# Build-time flags
|
# Build-time flags
|
||||||
ARG WITH_PLUGINS=true
|
ARG WITH_PLUGINS=true
|
||||||
|
|
||||||
|
# Packages directory
|
||||||
|
ENV PACKAGES=/usr/local/lib/python3.8/site-packages
|
||||||
|
|
||||||
# Set build directory
|
# Set build directory
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
|
|
||||||
@ -49,7 +52,13 @@ RUN \
|
|||||||
'mkdocs-redirects>=1.0'; \
|
'mkdocs-redirects>=1.0'; \
|
||||||
fi \
|
fi \
|
||||||
&& apk del .build gcc musl-dev \
|
&& apk del .build gcc musl-dev \
|
||||||
&& rm -rf /usr/local/lib/python3.8/site-packages/mkdocs/themes/*/* \
|
&& \
|
||||||
|
for theme in mkdocs readthedocs; do \
|
||||||
|
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
|
||||||
|
ln -s \
|
||||||
|
${PACKAGES}/material \
|
||||||
|
${PACKAGES}/mkdocs/themes/$theme; \
|
||||||
|
done \
|
||||||
&& rm -rf /tmp/*
|
&& rm -rf /tmp/*
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
|
Loading…
Reference in New Issue
Block a user