From c0f25a2bf0712595e91830467f3db0086f438fa5 Mon Sep 17 00:00:00 2001
From: Mohamed Ashiq Liyazudeen <mliyazud@redhat.com>
Date: Thu, 18 May 2017 17:30:29 +0530
Subject: Cleaning up RUN in dockerfile

This reduces the image size as it reduces the number of intermediate layers.

Signed-off-by: Mohamed Ashiq Liyazudeen <mliyazud@redhat.com>
---
 gluster-client/Dockerfile | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

(limited to 'gluster-client')

diff --git a/gluster-client/Dockerfile b/gluster-client/Dockerfile
index 8621ef8..9f28b4e 100644
--- a/gluster-client/Dockerfile
+++ b/gluster-client/Dockerfile
@@ -14,10 +14,9 @@ LABEL architecture="x86_64" \
 
 ENV container docker
 
-RUN dnf --setopt=tsflags=nodocs -y update; dnf --setopt=tsflags=nodocs -y install wget nfs-utils attr iputils iproute; dnf clean all;
-
-RUN sed -i "s/LANG/\#LANG/g" /etc/locale.conf
-
-RUN dnf install -y glusterfs-fuse; dnf clean all;
+RUN dnf --setopt=tsflags=nodocs -y update; dnf --setopt=tsflags=nodocs -y install wget nfs-utils attr iputils iproute; \
+sed -i "s/LANG/\#LANG/g" /etc/locale.conf;\
+dnf install -y glusterfs-fuse;\
+dnf clean all;
 
 CMD ["/bin/bash"]
-- 
cgit v1.2.3