From b0627b9ce8be47dfcdcbf49b338511a9d6fed736 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 26 May 2018 01:36:28 +0200 Subject: [PATCH 1/2] Fix python test removal --- docker/build_scripts/build.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/build_scripts/build.sh b/docker/build_scripts/build.sh index 219703ac..f1d87e48 100755 --- a/docker/build_scripts/build.sh +++ b/docker/build_scripts/build.sh @@ -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 From 2d28d8fb82be029312aa6729785fceaf5962a4f6 Mon Sep 17 00:00:00 2001 From: mayeut Date: Sat, 26 May 2018 01:37:20 +0200 Subject: [PATCH 2/2] Use centos:5 base image instead of centos 5.11 to reduce image size --- docker/Dockerfile-x86_64 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile-x86_64 b/docker/Dockerfile-x86_64 index 0c2f4b1f..b921c1aa 100644 --- a/docker/Dockerfile-x86_64 +++ b/docker/Dockerfile-x86_64 @@ -1,4 +1,4 @@ -FROM centos:5.11 +FROM centos:5 MAINTAINER The ManyLinux project ENV LC_ALL en_US.UTF-8