Skip to content

Commit a0d46fa

Browse files
authored
Merge pull request pypa#206 from mayeut/shrink
Reduce image size
2 parents fec48da + 2d28d8f commit a0d46fa

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

docker/Dockerfile-x86_64

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM centos:5.11
1+
FROM centos:5
22
MAINTAINER The ManyLinux project
33

44
ENV LC_ALL en_US.UTF-8

docker/build_scripts/build.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,9 @@ find /opt/_internal -type f -print0 \
170170
# We do not need the Python test suites, or indeed the precompiled .pyc and
171171
# .pyo files. Partially cribbed from:
172172
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
173-
find /opt/_internal \
173+
find /opt/_internal -depth \
174174
\( -type d -a -name test -o -name tests \) \
175-
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
176-
-print0 | xargs -0 rm -f
175+
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf
177176

178177
for PYTHON in /opt/python/*/bin/python; do
179178
# Smoke test to make sure that our Pythons work, and do indeed detect as

0 commit comments

Comments
 (0)