|
1 |
| -FROM centos:6 |
2 |
| -LABEL maintainer="The Manylinux project" |
| 1 | +FROM centos:6 AS manylinux2010_centos-6-no-vsyscall-build |
3 | 2 |
|
4 | 3 | # do not install debuginfo and what x86_64 already provides
|
5 | 4 | COPY --from=quay.io/pypa/manylinux2010_centos-6-with-vsyscall32:latest \
|
@@ -32,10 +31,22 @@ RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf &&
|
32 | 31 | sed -i 's/^mirrorlist/#mirrorlist/g' /etc/yum.repos.d/*.repo && \
|
33 | 32 | sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo
|
34 | 33 |
|
35 |
| -RUN yum install -y glibc.i686 glibc-devel.i686 glibc-static.i686 glibc.x86_64 glibc-devel.x86_64 glibc-static.x86_64 && \ |
36 |
| - yum -y install /rpms/* && rm -rf /rpms && yum -y clean all && rm -rf /var/cache/yum/* && \ |
| 34 | +RUN yum update -y && \ |
| 35 | + yum install -y glibc.i686 glibc-devel.i686 glibc-static.i686 glibc.x86_64 glibc-devel.x86_64 glibc-static.x86_64 && \ |
| 36 | + yum -y install /rpms/* && rm -rf /rpms && rpm --rebuilddb && yum -y clean all && rm -rf /var/cache/yum/* && \ |
37 | 37 | # if we updated glibc, we need to strip locales again...
|
38 | 38 | localedef --list-archive | grep -v -i ^en_US.utf8 | xargs localedef --delete-from-archive && \
|
39 | 39 | mv -f /usr/lib/locale/locale-archive /usr/lib/locale/locale-archive.tmpl && \
|
40 | 40 | build-locale-archive && \
|
41 |
| - find /usr/share/locale -mindepth 1 -maxdepth 1 -not \( -name 'en*' -or -name 'locale.alias' \) | xargs rm -rf |
| 41 | + find /usr/share/locale -mindepth 1 -maxdepth 1 -not \( -name 'en*' -or -name 'locale.alias' \) | xargs rm -rf && \ |
| 42 | + rm -rf /root/* /tmp/* /var/log/* |
| 43 | + |
| 44 | +RUN ln -sf cracklib-small.pwi /usr/share/cracklib/pw_dict.pwi && \ |
| 45 | + ln -sf cracklib-small.pwd /usr/share/cracklib/pw_dict.pwd && \ |
| 46 | + rm -rf /var/lib/yum/history/* && \ |
| 47 | + find /usr/lib64/python2.6 \( -type f -a -name '*.pyc' -o -name '*.pyo' \) -delete |
| 48 | + |
| 49 | +FROM scratch |
| 50 | +LABEL maintainer="The Manylinux project" |
| 51 | +COPY --from=manylinux2010_centos-6-no-vsyscall-build / / |
| 52 | +CMD ["/bin/bash"] |
0 commit comments