@@ -40,33 +40,40 @@ COPY setup.py setup.py
40
40
41
41
# Perform build and cleanup artifacts and caches
42
42
RUN \
43
- apk upgrade --update-cache -a && \
43
+ apk upgrade --update-cache -a \
44
+ && \
44
45
apk add --no-cache \
45
46
git \
46
47
git-fast-import \
47
48
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 {} \;
70
77
71
78
# Set working directory
72
79
WORKDIR /docs
0 commit comments