File tree 2 files changed +7
-3
lines changed 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf &&
8
8
sed -i 's;^#baseurl=http://mirror;baseurl=https://vault;g' /etc/yum.repos.d/*.repo
9
9
10
10
RUN echo "i386" > /etc/yum/vars/basearch
11
- RUN yum -y update && \
12
- yum install -y util-linux-ng
11
+ RUN yum install -y util-linux-ng && \
12
+ yum -y clean all && \
13
+ rm -rf /var/cache/yum/*
13
14
COPY ./build_scripts /build_scripts
14
15
RUN linux32 bash /build_scripts/rebuild-glibc-without-vsyscall.sh
Original file line number Diff line number Diff line change @@ -52,4 +52,7 @@ mv $SRPM_TOPDIR/RPMS/* /rpms/
52
52
# Show us what happened last before cleaning up the log
53
53
echo ~ ~~~~~~~~~~~~~~~~~~~~ final lines of the build log ~ ~~~~~~~~~~~~~~~~~~~~ > /dev/null
54
54
tail -n30 /var/log/build.log
55
- rm /var/log/build.log
55
+
56
+ # We don't need to keep anything execept /rpms/*
57
+ rm -rf /root /tmp /var /sbin
58
+ rm -rf /usr /lib*
You can’t perform that action at this time.
0 commit comments