diff --git a/Docker/tomcat_dockerfile b/Docker/tomcat_dockerfile index d4ffa84f..a87bf3cb 100644 --- a/Docker/tomcat_dockerfile +++ b/Docker/tomcat_dockerfile @@ -1,4 +1,7 @@ FROM centos +RUN cd /etc/yum.repos.d/ +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* +RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* RUN yum install java -y RUN mkdir /opt/tomcat/ WORKDIR /opt/tomcat