Skip to content

Commit 62742b4

Browse files
committed
Formatting
1 parent 8fa40fa commit 62742b4

File tree

1 file changed

+30
-23
lines changed

1 file changed

+30
-23
lines changed

Diff for: Dockerfile

+30-23
Original file line numberDiff line numberDiff line change
@@ -40,33 +40,40 @@ COPY setup.py setup.py
4040

4141
# Perform build and cleanup artifacts and caches
4242
RUN \
43-
apk upgrade --update-cache -a && \
43+
apk upgrade --update-cache -a \
44+
&& \
4445
apk add --no-cache \
4546
git \
4647
git-fast-import \
4748
openssh \
48-
&& apk add --no-cache --virtual .build gcc musl-dev \
49-
&& pip install --no-cache-dir . \
50-
&& \
51-
if [ "${WITH_PLUGINS}" = "true" ]; then \
52-
pip install --no-cache-dir \
53-
"mkdocs-minify-plugin>=0.3" \
54-
"mkdocs-redirects>=1.0"; \
55-
fi \
56-
&& apk del .build gcc musl-dev \
57-
&& \
58-
for theme in mkdocs readthedocs; do \
59-
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
60-
ln -s \
61-
${PACKAGES}/material \
62-
${PACKAGES}/mkdocs/themes/$theme; \
63-
done \
64-
&& rm -rf /tmp/* /root/.cache \
65-
&& \
66-
find ${PACKAGES} \
67-
-type f \
68-
-path "*/__pycache__/*" \
69-
-exec rm -f {} \;
49+
&& \
50+
apk add --no-cache --virtual .build \
51+
gcc \
52+
musl-dev \
53+
&& \
54+
pip install --no-cache-dir . \
55+
&& \
56+
if [ "${WITH_PLUGINS}" = "true" ]; then \
57+
pip install --no-cache-dir \
58+
"mkdocs-minify-plugin>=0.3" \
59+
"mkdocs-redirects>=1.0"; \
60+
fi \
61+
&& \
62+
apk del .build \
63+
&& \
64+
for theme in mkdocs readthedocs; do \
65+
rm -rf ${PACKAGES}/mkdocs/themes/$theme; \
66+
ln -s \
67+
${PACKAGES}/material \
68+
${PACKAGES}/mkdocs/themes/$theme; \
69+
done \
70+
&& \
71+
rm -rf /tmp/* /root/.cache \
72+
&& \
73+
find ${PACKAGES} \
74+
-type f \
75+
-path "*/__pycache__/*" \
76+
-exec rm -f {} \;
7077

7178
# Set working directory
7279
WORKDIR /docs

0 commit comments

Comments
 (0)