Skip to content

Commit

Permalink
Merge pull request #206 from mayeut/shrink
Browse files Browse the repository at this point in the history
Reduce image size
  • Loading branch information
ehashman authored Jul 4, 2018
2 parents fec48da + 2d28d8f commit a0d46fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile-x86_64
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM centos:5.11
FROM centos:5
MAINTAINER The ManyLinux project

ENV LC_ALL en_US.UTF-8
Expand Down
5 changes: 2 additions & 3 deletions docker/build_scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -170,10 +170,9 @@ find /opt/_internal -type f -print0 \
# We do not need the Python test suites, or indeed the precompiled .pyc and
# .pyo files. Partially cribbed from:
# https://github.com/docker-library/python/blob/master/3.4/slim/Dockerfile
find /opt/_internal \
find /opt/_internal -depth \
\( -type d -a -name test -o -name tests \) \
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) \
-print0 | xargs -0 rm -f
-o \( -type f -a -name '*.pyc' -o -name '*.pyo' \) | xargs rm -rf

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

0 comments on commit a0d46fa

Please sign in to comment.