File tree Expand file tree Collapse file tree 15 files changed +90
-60
lines changed Expand file tree Collapse file tree 15 files changed +90
-60
lines changed Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ RUN set -ex \
33
33
&& ldconfig \
34
34
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
35
35
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
36
- && find /usr/local \
37
- \( -type d -a -name test -o -name tests \) \
38
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
- -exec rm -rf '{}' + \
36
+ && find /usr/local -depth \
37
+ \( \
38
+ \( -type d -a -name test -o -name tests \) \
39
+ -o \
40
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
41
+ \) -exec rm -rf '{}' + \
40
42
&& rm -rf /usr/src/python ~/.cache
41
43
42
44
# install "virtualenv", since the vast majority of users of this image will want it
Original file line number Diff line number Diff line change @@ -43,10 +43,12 @@ RUN set -ex \
43
43
&& make install \
44
44
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
45
45
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
46
- && find /usr/local \
47
- \( -type d -a -name test -o -name tests \) \
48
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
49
- -exec rm -rf '{}' + \
46
+ && find /usr/local -depth \
47
+ \( \
48
+ \( -type d -a -name test -o -name tests \) \
49
+ -o \
50
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
51
+ \) -exec rm -rf '{}' + \
50
52
&& runDeps="$( \
51
53
scanelf --needed --nobanner --recursive /usr/local \
52
54
| awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ RUN set -ex \
53
53
&& ldconfig \
54
54
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
55
55
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
56
- && find /usr/local \
57
- \( -type d -a -name test -o -name tests \) \
58
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
59
- -exec rm -rf '{}' + \
56
+ && find /usr/local -depth \
57
+ \( \
58
+ \( -type d -a -name test -o -name tests \) \
59
+ -o \
60
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
61
+ \) -exec rm -rf '{}' + \
60
62
&& apt-get purge -y --auto-remove $buildDeps \
61
63
&& rm -rf /usr/src/python ~/.cache
62
64
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ RUN set -ex \
33
33
&& ldconfig \
34
34
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python2 \
35
35
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
36
- && find /usr/local \
37
- \( -type d -a -name test -o -name tests \) \
38
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
- -exec rm -rf '{}' + \
36
+ && find /usr/local -depth \
37
+ \( \
38
+ \( -type d -a -name test -o -name tests \) \
39
+ -o \
40
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
41
+ \) -exec rm -rf '{}' + \
40
42
&& rm -rf /usr/src/python ~/.cache
41
43
42
44
# install "virtualenv", since the vast majority of users of this image will want it
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ RUN set -ex \
33
33
&& ldconfig \
34
34
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
35
35
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
36
- && find /usr/local \
37
- \( -type d -a -name test -o -name tests \) \
38
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
- -exec rm -rf '{}' + \
36
+ && find /usr/local -depth \
37
+ \( \
38
+ \( -type d -a -name test -o -name tests \) \
39
+ -o \
40
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
41
+ \) -exec rm -rf '{}' + \
40
42
&& rm -rf /usr/src/python ~/.cache
41
43
42
44
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ RUN set -ex \
44
44
&& make install \
45
45
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
46
46
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
47
- && find /usr/local \
48
- \( -type d -a -name test -o -name tests \) \
49
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
50
- -exec rm -rf '{}' + \
47
+ && find /usr/local -depth \
48
+ \( \
49
+ \( -type d -a -name test -o -name tests \) \
50
+ -o \
51
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
52
+ \) -exec rm -rf '{}' + \
51
53
&& runDeps="$( \
52
54
scanelf --needed --nobanner --recursive /usr/local \
53
55
| awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
Original file line number Diff line number Diff line change @@ -54,10 +54,12 @@ RUN set -ex \
54
54
&& ldconfig \
55
55
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
56
56
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
57
- && find /usr/local \
58
- \( -type d -a -name test -o -name tests \) \
59
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
60
- -exec rm -rf '{}' + \
57
+ && find /usr/local -depth \
58
+ \( \
59
+ \( -type d -a -name test -o -name tests \) \
60
+ -o \
61
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
62
+ \) -exec rm -rf '{}' + \
61
63
&& apt-get purge -y --auto-remove $buildDeps \
62
64
&& rm -rf /usr/src/python ~/.cache
63
65
Original file line number Diff line number Diff line change @@ -33,10 +33,12 @@ RUN set -ex \
33
33
&& ldconfig \
34
34
&& curl -fSL 'https://bootstrap.pypa.io/get-pip.py' | python3 \
35
35
&& pip install --no-cache-dir --upgrade pip==$PYTHON_PIP_VERSION \
36
- && find /usr/local \
37
- \( -type d -a -name test -o -name tests \) \
38
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
39
- -exec rm -rf '{}' + \
36
+ && find /usr/local -depth \
37
+ \( \
38
+ \( -type d -a -name test -o -name tests \) \
39
+ -o \
40
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
41
+ \) -exec rm -rf '{}' + \
40
42
&& rm -rf /usr/src/python ~/.cache
41
43
42
44
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ RUN set -ex \
32
32
&& make install \
33
33
&& ldconfig \
34
34
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
35
- && find /usr/local \
36
- \( -type d -a -name test -o -name tests \) \
37
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
38
- -exec rm -rf '{}' + \
35
+ && find /usr/local -depth \
36
+ \( \
37
+ \( -type d -a -name test -o -name tests \) \
38
+ -o \
39
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
40
+ \) -exec rm -rf '{}' + \
39
41
&& rm -rf /usr/src/python ~/.cache
40
42
41
43
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ RUN set -ex \
44
44
&& make -j$(getconf _NPROCESSORS_ONLN) \
45
45
&& make install \
46
46
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
47
- && find /usr/local \
48
- \( -type d -a -name test -o -name tests \) \
49
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
50
- -exec rm -rf '{}' + \
47
+ && find /usr/local -depth \
48
+ \( \
49
+ \( -type d -a -name test -o -name tests \) \
50
+ -o \
51
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
52
+ \) -exec rm -rf '{}' + \
51
53
&& runDeps="$( \
52
54
scanelf --needed --nobanner --recursive /usr/local \
53
55
| awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ RUN set -ex \
53
53
&& make install \
54
54
&& ldconfig \
55
55
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
56
- && find /usr/local \
57
- \( -type d -a -name test -o -name tests \) \
58
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
59
- -exec rm -rf '{}' + \
56
+ && find /usr/local -depth \
57
+ \( \
58
+ \( -type d -a -name test -o -name tests \) \
59
+ -o \
60
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
61
+ \) -exec rm -rf '{}' + \
60
62
&& apt-get purge -y --auto-remove $buildDeps \
61
63
&& rm -rf /usr/src/python ~/.cache
62
64
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ RUN set -ex \
32
32
&& make install \
33
33
&& ldconfig \
34
34
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
35
- && find /usr/local \
36
- \( -type d -a -name test -o -name tests \) \
37
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
38
- -exec rm -rf '{}' + \
35
+ && find /usr/local -depth \
36
+ \( \
37
+ \( -type d -a -name test -o -name tests \) \
38
+ -o \
39
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
40
+ \) -exec rm -rf '{}' + \
39
41
&& rm -rf /usr/src/python ~/.cache
40
42
41
43
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ RUN set -ex \
32
32
&& make install \
33
33
&& ldconfig \
34
34
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
35
- && find /usr/local \
36
- \( -type d -a -name test -o -name tests \) \
37
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
38
- -exec rm -rf '{}' + \
35
+ && find /usr/local -depth \
36
+ \( \
37
+ \( -type d -a -name test -o -name tests \) \
38
+ -o \
39
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
40
+ \) -exec rm -rf '{}' + \
39
41
&& rm -rf /usr/src/python ~/.cache
40
42
41
43
# make some useful symlinks that are expected to exist
Original file line number Diff line number Diff line change @@ -44,10 +44,12 @@ RUN set -ex \
44
44
&& make -j$(getconf _NPROCESSORS_ONLN) \
45
45
&& make install \
46
46
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
47
- && find /usr/local \
48
- \( -type d -a -name test -o -name tests \) \
49
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
50
- -exec rm -rf '{}' + \
47
+ && find /usr/local -depth \
48
+ \( \
49
+ \( -type d -a -name test -o -name tests \) \
50
+ -o \
51
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
52
+ \) -exec rm -rf '{}' + \
51
53
&& runDeps="$( \
52
54
scanelf --needed --nobanner --recursive /usr/local \
53
55
| awk '{ gsub(/,/, " \n so:", $2); print " so:" $2 }' \
Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ RUN set -ex \
53
53
&& make install \
54
54
&& ldconfig \
55
55
&& pip3 install --no-cache-dir --upgrade --ignore-installed pip==$PYTHON_PIP_VERSION \
56
- && find /usr/local \
57
- \( -type d -a -name test -o -name tests \) \
58
- -o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
59
- -exec rm -rf '{}' + \
56
+ && find /usr/local -depth \
57
+ \( \
58
+ \( -type d -a -name test -o -name tests \) \
59
+ -o \
60
+ \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
61
+ \) -exec rm -rf '{}' + \
60
62
&& apt-get purge -y --auto-remove $buildDeps \
61
63
&& rm -rf /usr/src/python ~/.cache
62
64
You can’t perform that action at this time.
0 commit comments