Skip to content

Commit

Permalink
Reduce layer and size of docker image (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
pradeepbhadani authored Sep 18, 2018
1 parent 52fc36d commit 43281b6
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 43281b6

Please sign in to comment.