mirror of
https://github.com/squidfunk/mkdocs-material.git
synced 2024-11-27 17:00:54 +01:00
Formatting
This commit is contained in:
parent
8fa40faf3c
commit
62742b4f0d
53
Dockerfile
53
Dockerfile
@ -40,33 +40,40 @@ 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 \
|
||||||
if [ "${WITH_PLUGINS}" = "true" ]; then \
|
musl-dev \
|
||||||
pip install --no-cache-dir \
|
&& \
|
||||||
"mkdocs-minify-plugin>=0.3" \
|
pip install --no-cache-dir . \
|
||||||
"mkdocs-redirects>=1.0"; \
|
&& \
|
||||||
fi \
|
if [ "${WITH_PLUGINS}" = "true" ]; then \
|
||||||
&& apk del .build gcc musl-dev \
|
pip install --no-cache-dir \
|
||||||
&& \
|
"mkdocs-minify-plugin>=0.3" \
|
||||||
for theme in mkdocs readthedocs; do \
|
"mkdocs-redirects>=1.0"; \
|
||||||
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
|
fi \
|
||||||
ln -s \
|
&& \
|
||||||
${PACKAGES}/material \
|
apk del .build \
|
||||||
${PACKAGES}/mkdocs/themes/$theme; \
|
&& \
|
||||||
done \
|
for theme in mkdocs readthedocs; do \
|
||||||
&& rm -rf /tmp/* /root/.cache \
|
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
|
||||||
&& \
|
ln -s \
|
||||||
find ${PACKAGES} \
|
${PACKAGES}/material \
|
||||||
-type f \
|
${PACKAGES}/mkdocs/themes/$theme; \
|
||||||
-path "*/__pycache__/*" \
|
done \
|
||||||
-exec rm -f {} \;
|
&& \
|
||||||
|
rm -rf /tmp/* /root/.cache \
|
||||||
|
&& \
|
||||||
|
find ${PACKAGES} \
|
||||||
|
-type f \
|
||||||
|
-path "*/__pycache__/*" \
|
||||||
|
-exec rm -f {} \;
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
WORKDIR /docs
|
WORKDIR /docs
|
||||||
|
Loading…
Reference in New Issue
Block a user