root 3 years ago
parent
commit
38f64fa8d3
1 changed files with 5 additions and 2 deletions
  1. 5 2
      Dockerfile

+ 5 - 2
Dockerfile

@@ -4,8 +4,11 @@ ENV TZ=Asia/Shanghai
 
 COPY asp.tgz /tmp/asp.tgz
 
-RUN yum install -y epel-release \
-    && yum install -y  supervisor libcrypto.so.6 libldap-2.3.so.0 liblber-2.3.so.0 \
+RUN rm -f /etc/yum.repos.d/* \
+    && 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 -y epel-release \
+    && yum install -y supervisor libcrypto.so.6 libldap-2.3.so.0 liblber-2.3.so.0 \
     && ln -s /usr/lib64/libcrypto.so.1.0.2k /usr/lib64/libcrypto.so.6 \
     && ln -s /usr/lib64/liblber-2.4.so.2.10.7 /usr/lib64/liblber-2.3.so.0 \
     && ln -s /usr/lib64/libldap-2.4.so.2.10.7 /usr/lib64/libldap-2.3.so.0 \