1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 01:10:58 +01:00

Formatting

This commit is contained in:
squidfunk 2021-09-23 08:25:04 +02:00
parent 8fa40faf3c
commit 62742b4f0d

View File

@ -40,20 +40,26 @@ COPY setup.py setup.py
# Perform build and cleanup artifacts and caches # Perform build and cleanup artifacts and caches
RUN \ RUN \
apk upgrade --update-cache -a && \ apk upgrade --update-cache -a \
&& \
apk add --no-cache \ apk add --no-cache \
git \ git \
git-fast-import \ git-fast-import \
openssh \ openssh \
&& apk add --no-cache --virtual .build gcc musl-dev \ && \
&& pip install --no-cache-dir . \ apk add --no-cache --virtual .build \
gcc \
musl-dev \
&& \
pip install --no-cache-dir . \
&& \ && \
if [ "${WITH_PLUGINS}" = "true" ]; then \ if [ "${WITH_PLUGINS}" = "true" ]; then \
pip install --no-cache-dir \ pip install --no-cache-dir \
"mkdocs-minify-plugin>=0.3" \ "mkdocs-minify-plugin>=0.3" \
"mkdocs-redirects>=1.0"; \ "mkdocs-redirects>=1.0"; \
fi \ fi \
&& apk del .build gcc musl-dev \ && \
apk del .build \
&& \ && \
for theme in mkdocs readthedocs; do \ for theme in mkdocs readthedocs; do \
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \ rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
@ -61,7 +67,8 @@ RUN \
${PACKAGES}/material \ ${PACKAGES}/material \
${PACKAGES}/mkdocs/themes/$theme; \ ${PACKAGES}/mkdocs/themes/$theme; \
done \ done \
&& rm -rf /tmp/* /root/.cache \ && \
rm -rf /tmp/* /root/.cache \
&& \ && \
find ${PACKAGES} \ find ${PACKAGES} \
-type f \ -type f \