File tree Expand file tree Collapse file tree 15 files changed +15
-15
lines changed Expand file tree Collapse file tree 15 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN set -ex \
37
37
\( -type d -a -name test -o -name tests \) \
38
38
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
39
-exec rm -rf '{}' + \
40
- && rm -rf /usr/src/python
40
+ && rm -rf /usr/src/python ~/.cache
41
41
42
42
# install "virtualenv", since the vast majority of users of this image will want it
43
43
RUN pip install --no-cache-dir virtualenv
Original file line number Diff line number Diff line change @@ -56,6 +56,6 @@ RUN set -ex \
56
56
)" \
57
57
&& apk add --virtual .python-rundeps $runDeps \
58
58
&& apk del .build-deps .fetch-deps \
59
- && rm -rf /usr/src/python
59
+ && rm -rf /usr/src/python ~/.cache
60
60
61
61
CMD ["python2" ]
Original file line number Diff line number Diff line change @@ -58,6 +58,6 @@ RUN set -ex \
58
58
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
59
59
-exec rm -rf '{}' + \
60
60
&& apt-get purge -y --auto-remove $buildDeps \
61
- && rm -rf /usr/src/python
61
+ && rm -rf /usr/src/python ~/.cache
62
62
63
63
CMD ["python2" ]
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN set -ex \
37
37
\( -type d -a -name test -o -name tests \) \
38
38
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
39
-exec rm -rf '{}' + \
40
- && rm -rf /usr/src/python
40
+ && rm -rf /usr/src/python ~/.cache
41
41
42
42
# install "virtualenv", since the vast majority of users of this image will want it
43
43
RUN pip install --no-cache-dir virtualenv
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN set -ex \
37
37
\( -type d -a -name test -o -name tests \) \
38
38
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
39
-exec rm -rf '{}' + \
40
- && rm -rf /usr/src/python
40
+ && rm -rf /usr/src/python ~/.cache
41
41
42
42
# make some useful symlinks that are expected to exist
43
43
RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ RUN set -ex \
56
56
)" \
57
57
&& apk add --virtual .python-rundeps $runDeps \
58
58
&& apk del .build-deps .fetch-deps \
59
- && rm -rf /usr/src/python
59
+ && rm -rf /usr/src/python ~/.cache
60
60
61
61
# make some useful symlinks that are expected to exist
62
62
RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ RUN set -ex \
58
58
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
59
59
-exec rm -rf '{}' + \
60
60
&& apt-get purge -y --auto-remove $buildDeps \
61
- && rm -rf /usr/src/python
61
+ && rm -rf /usr/src/python ~/.cache
62
62
63
63
# make some useful symlinks that are expected to exist
64
64
RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ RUN set -ex \
37
37
\( -type d -a -name test -o -name tests \) \
38
38
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
39
-exec rm -rf '{}' + \
40
- && rm -rf /usr/src/python
40
+ && rm -rf /usr/src/python ~/.cache
41
41
42
42
# make some useful symlinks that are expected to exist
43
43
RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ RUN set -ex \
36
36
\( -type d -a -name test -o -name tests \) \
37
37
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
38
38
-exec rm -rf '{}' + \
39
- && rm -rf /usr/src/python
39
+ && rm -rf /usr/src/python ~/.cache
40
40
41
41
# make some useful symlinks that are expected to exist
42
42
RUN cd /usr/local/bin \
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ RUN set -ex \
56
56
)" \
57
57
&& apk add --virtual .python-rundeps $runDeps \
58
58
&& apk del .build-deps \
59
- && rm -rf /usr/src/python
59
+ && rm -rf /usr/src/python ~/.cache
60
60
61
61
# make some useful symlinks that are expected to exist
62
62
RUN cd /usr/local/bin \
You can’t perform that action at this time.
0 commit comments