From 6d070c2be6d750f11ebef196838cbdba016fbc34 Mon Sep 17 00:00:00 2001 From: HamzaBENAZOUZ <64062286+HamzaBENAZOUZ@users.noreply.github.com> Date: Sun, 12 Mar 2023 21:07:00 +0100 Subject: [PATCH] Update tomcat_dockerfile Correct error : CentOS Linux 8 - AppStream 184 B/s | 38 B 00:00 Error: Failed to download metadata for repo 'appstream': --- Docker/tomcat_dockerfile | 3 +++ 1 file changed, 3 insertions(+) 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