CI hung for a long time when excuting "step_script" stage with custom image

CI hung for a long time

I built a image and used it as base iamge, but ci hung every time.

This is my Dockerfile

FROM centos:centos7.6.1810

USER root

ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
ENV M2_HOME /opt/apache-maven
ENV PATH="${PATH}:${M2_HOME}/bin"
ENV JAVA_HOME /usr/lib/jvm/java

RUN yum -y install epel-release wget\
&& yum -y install java-11-openjdk-devel yum-utils python3 \
&& yum -y install ansible git \
&& localedef -c -f UTF-8 -i zh_CN zh_CN.utf8 \
&& export LANG=zh_CN.UTF-8 \
&& echo "export LANG=zh_CN.UTF-8" >> /etc/locale.conf \
&& ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo "Asia/Shanghai" > /etc/timezone \
&& alternatives --set java java-11-openjdk.x86_64 \
&& alternatives --set javac java-11-openjdk.x86_64 \
&& git clone https://github.com/Pilipupu/OneDayDevOps.git \
&& sh /OneDayDevOps/components/maven/install_maven.sh \
&& cp -f /OneDayDevOps/components/maven/settings.xml /root/.m2

ENTRYPOINT ["/usr/sbin/init"]