From 43281b6c7d40bc2809e2ead02d98446319306245 Mon Sep 17 00:00:00 2001 From: pradeepbhadani Date: Tue, 18 Sep 2018 09:37:34 +0100 Subject: [PATCH] Reduce layer and size of docker image (#34) --- Dockerfile | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index daf5ee5..44495b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,10 +11,17 @@ COPY files/RPM-GPG-KEY-emr /etc/pki/rpm-gpg/RPM-GPG-KEY-emr COPY files/emr-apps.repo /etc/yum.repos.d/emr-apps.repo COPY files/emr-platform.repo /etc/yum.repos.d/emr-platform.repo -RUN yum -y install java-1.8.0-openjdk java-1.8.0-openjdk-devel.x86_64 -RUN yum -y install hive-metastore mariadb-connector-java -RUN yum -y install mysql wget unzip jq -RUN yum -y install emrfs +RUN yum -y install java-1.8.0-openjdk \ + java-1.8.0-openjdk-devel.x86_64 \ + hive-metastore \ + mariadb-connector-java \ + mysql \ + wget \ + unzip \ + jq \ + emrfs \ + && yum clean all \ + && rm -rf /var/cache/yum RUN wget -qN https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip && unzip -q -o vault_${VAULT_VERSION}_linux_amd64.zip -d /usr/local/bin/ && rm -f vault_${VAULT_VERSION}_linux_amd64.zip