root 3 жил өмнө
parent
commit
36bb68b814
2 өөрчлөгдсөн 28 нэмэгдсэн , 2 устгасан
  1. 2 2
      Dockerfile
  2. 26 0
      epel.repo

+ 2 - 2
Dockerfile

@@ -4,11 +4,11 @@ ENV TZ=Asia/Shanghai
 ENV JAVA_HOME /usr/java/jdk1.8.0_271
 
 COPY cif-resin8080.tgz /tmp/cif-resin8080.tgz
+COPY epel.repo /etc/yum.repos.d/epel.repo
 
-RUN rm -f /etc/yum.repos.d/* \
+RUN rm -f /etc/yum.repos.d/CentOS-* \
     && curl -s http://mirrors.163.com/.help/CentOS7-Base-163.repo -o /etc/yum.repos.d/CentOS7-Base-163.repo \
     && yum clean all \
-    && yum install epel-release -y \
     && yum install -y supervisor \
     && sed -i "s/nodaemon=false/nodaemon=true/" /etc/supervisord.conf \
     && useradd ecom \

+ 26 - 0
epel.repo

@@ -0,0 +1,26 @@
+[epel]
+name=Extra Packages for Enterprise Linux 7 - $basearch
+baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch
+#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
+failovermethod=priority
+enabled=1
+gpgcheck=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
+
+[epel-debuginfo]
+name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
+baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch/debug
+#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
+failovermethod=priority
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
+gpgcheck=1
+
+[epel-source]
+name=Extra Packages for Enterprise Linux 7 - $basearch - Source
+baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/SRPMS
+#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
+failovermethod=priority
+enabled=0
+gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
+gpgcheck=1