From 3cd6feeb0bea75444e0fa7e8773e4459fa416830 Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Tue, 19 Feb 2019 13:58:47 +0200 Subject: [PATCH] Remove unnecessary Dockerfile commands (#39095) As the Dockerfile evolved we don't need anymore certain commands like `unzip`, `which` and `wget` allowing us to slightly shrink the images. Backport of: #39040 --- distribution/docker/src/docker/Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/distribution/docker/src/docker/Dockerfile b/distribution/docker/src/docker/Dockerfile index e511e64e60c..a6d0556a478 100644 --- a/distribution/docker/src/docker/Dockerfile +++ b/distribution/docker/src/docker/Dockerfile @@ -23,8 +23,6 @@ RUN curl --retry 8 -s ${jdkUrl} | tar -C /opt -zxf - # REF: https://github.com/elastic/elasticsearch-docker/issues/171 RUN ln -sf /etc/pki/ca-trust/extracted/java/cacerts /opt/jdk-${jdkVersion}/lib/security/cacerts -RUN yum install -y unzip which - RUN groupadd -g 1000 elasticsearch && \ adduser -u 1000 -g 1000 -d /usr/share/elasticsearch elasticsearch @@ -51,7 +49,7 @@ ENV JAVA_HOME /opt/jdk-${jdkVersion} COPY --from=builder /opt/jdk-${jdkVersion} /opt/jdk-${jdkVersion} RUN yum update -y && \ - yum install -y nc unzip wget which && \ + yum install -y nc && \ yum clean all RUN groupadd -g 1000 elasticsearch && \