Skip to content

Commit 6a981eb

Browse files
autoferrittianon
authored andcommitted
also should apply to slim images.
1 parent 7dc395a commit 6a981eb

File tree

8 files changed

+8
-0
lines changed

8 files changed

+8
-0
lines changed

3.5/buster/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN set -ex \
7070
--with-system-ffi \
7171
--without-ensurepip \
7272
&& make -j "$(nproc)" \
73+
LDFLAGS="-Wl,--strip-all" \
7374
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7475
PROFILE_TASK='-m test.regrtest --pgo \
7576
test_array \

3.5/stretch/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN set -ex \
7070
--with-system-ffi \
7171
--without-ensurepip \
7272
&& make -j "$(nproc)" \
73+
LDFLAGS="-Wl,--strip-all" \
7374
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7475
PROFILE_TASK='-m test.regrtest --pgo \
7576
test_array \

3.6/buster/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN set -ex \
7070
--with-system-ffi \
7171
--without-ensurepip \
7272
&& make -j "$(nproc)" \
73+
LDFLAGS="-Wl,--strip-all" \
7374
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7475
PROFILE_TASK='-m test.regrtest --pgo \
7576
test_array \

3.6/stretch/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ RUN set -ex \
7070
--with-system-ffi \
7171
--without-ensurepip \
7272
&& make -j "$(nproc)" \
73+
LDFLAGS="-Wl,--strip-all" \
7374
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7475
PROFILE_TASK='-m test.regrtest --pgo \
7576
test_array \

3.7/buster/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUN set -ex \
7171
--with-system-ffi \
7272
--without-ensurepip \
7373
&& make -j "$(nproc)" \
74+
LDFLAGS="-Wl,--strip-all" \
7475
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7576
PROFILE_TASK='-m test.regrtest --pgo \
7677
test_array \

3.7/stretch/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUN set -ex \
7171
--with-system-ffi \
7272
--without-ensurepip \
7373
&& make -j "$(nproc)" \
74+
LDFLAGS="-Wl,--strip-all" \
7475
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
7576
PROFILE_TASK='-m test.regrtest --pgo \
7677
test_array \

3.8/buster/slim/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ RUN set -ex \
7171
--with-system-ffi \
7272
--without-ensurepip \
7373
&& make -j "$(nproc)" \
74+
LDFLAGS="-Wl,--strip-all" \
7475
&& make install \
7576
&& ldconfig \
7677
\

Dockerfile-slim.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ RUN set -ex \
6565
--with-system-ffi \
6666
--without-ensurepip \
6767
&& make -j "$(nproc)" \
68+
LDFLAGS="-Wl,--strip-all" \
6869
# setting PROFILE_TASK makes "--enable-optimizations" reasonable: https://bugs.python.org/issue36044 / https://github.com/docker-library/python/issues/160#issuecomment-509426916
6970
PROFILE_TASK='-m test.regrtest --pgo \
7071
test_array \

0 commit comments

Comments
 (0)