Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6a981eb

Browse filesBrowse files
autoferrittianon
authored andcommitted
also should apply to slim images.
1 parent 7dc395a commit 6a981eb
Copy full SHA for 6a981eb

8 files changed

+8Lines changed: 8 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎3.5/buster/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.5/buster/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.5/stretch/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.5/stretch/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.6/buster/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.6/buster/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.6/stretch/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.6/stretch/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.7/buster/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.7/buster/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.7/stretch/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.7/stretch/slim/Dockerfile
+1Lines 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 \
Collapse file

‎3.8/buster/slim/Dockerfile‎

Copy file name to clipboardExpand all lines: 3.8/buster/slim/Dockerfile
+1Lines 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
\
Collapse file

‎Dockerfile-slim.template‎

Copy file name to clipboardExpand all lines: Dockerfile-slim.template
+1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.