summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-02-05 19:27:09 +0100
committerJeroen van Meeuwen (Kolab Systems) <vanmeeuwen@kolabsys.com>2016-02-05 19:27:09 +0100
commit84a4954b1bfd83fe48aa21d5fcf05a13d724fb80 (patch)
treece71cd67a1fe8f469364d20a00643977a0efb294
parent4246840c2eaf0b4cbdd375729c7752bda6c7cabc (diff)
downloaddocker-84a4954b1bfd83fe48aa21d5fcf05a13d724fb80.tar.gz
ADD seems pretty inefficient when obtaining a file from the webz
-rw-r--r--00-base/Dockerfile15
1 files changed, 11 insertions, 4 deletions
diff --git a/00-base/Dockerfile b/00-base/Dockerfile
index 5f5e7d0..c4ec55c 100644
--- a/00-base/Dockerfile
+++ b/00-base/Dockerfile
@@ -17,15 +17,21 @@ RUN sed -r -i \
/etc/yum.repos.d/*.repo
# Add EPEL.
-RUN yum -y install epel-release && \
+RUN yum -y install \
+ epel-release && \
+ yum clean all
+
+# Add wget.
+RUN yum -y install \
+ wget && \
yum clean all
# Add the EPEL key.
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
# Add the Kolab:Winterfell repository.
-ADD http://obs.kolabsys.com/repositories/Kolab:/Winterfell/CentOS_7/Kolab:Winterfell.repo \
- /etc/yum.repos.d/Kolab:Winterfell.repo
+RUN wget -q -O /etc/yum.repos.d/Kolab:Winterfell.repo \
+ http://obs.kolabsys.com/repositories/Kolab:/Winterfell/CentOS_7/Kolab:Winterfell.repo
# Give the Kolab:Winterfell repository priority over everything else.
RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Winterfell.repo
@@ -34,7 +40,8 @@ RUN echo "priority=60" >> /etc/yum.repos.d/Kolab:Winterfell.repo
RUN rpm --import https://ssl.kolabsys.com/community.asc
# Make YUM obey priorities configured.
-RUN yum -y install yum-plugin-priorities && \
+RUN yum -y install \
+ yum-plugin-priorities && \
yum clean all
# Install some debugging utilities.