This is an automated email from the ASF dual-hosted git repository.

fokko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-airflow-ci.git

commit feca835f6e0c83bce83f0e34ab8ba9a31cbfb212
Author: Gerardo Curiel <gerardo.cur...@rea-group.com>
AuthorDate: Sun May 20 10:43:55 2018 +1000

    Optimize image size
---
 Dockerfile.base | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/Dockerfile.base b/Dockerfile.base
index 14bf277..fbbf046 100644
--- a/Dockerfile.base
+++ b/Dockerfile.base
@@ -38,7 +38,7 @@ RUN  mkdir ${HADOOP_HOME} && \
      mkdir /tmp/minicluster  && \
      mkdir -p /user/hive/warehouse
 
-RUN apt-get update && apt-get install -y \
+RUN apt-get update && apt-get install --no-install-recommends -y \
       openjdk-8-jdk \
       wget curl \
       python-pip \
@@ -58,7 +58,9 @@ RUN apt-get update && apt-get install -y \
       openssh-server \
       python-selinux \
       locales \
-    && sed -i 's/^# en_US.UTF-8 UTF-8$/en_US.UTF-8 UTF-8/g' /etc/locale.gen \
+    && rm -rf /var/lib/apt/lists/*
+
+RUN sed -i 's/^# en_US.UTF-8 UTF-8$/en_US.UTF-8 UTF-8/g' /etc/locale.gen \
     && locale-gen \
     && update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
 

Reply via email to