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