modify dockerfile
[ric-app/kpimon.git] / Dockerfile
index 5c0f31e..fcc7e65 100755 (executable)
@@ -11,22 +11,22 @@ ARG STAGE_DIR
 # Install necessary packages\r
 WORKDIR ${STAGE_DIR}\r
 RUN apt-get update  \\r
-     && apt-get install -y \\r
-     libcurl4-openssl-dev \\r
-     libcurl3 \\r
-     cmake \\r
-     git \\r
-     build-essential \\r
-     automake \\r
-     autoconf-archive \\r
-     autoconf \\r
-     pkg-config \\r
-     gawk \\r
-     libtool \\r
-     wget \\r
-     zlib1g-dev \\r
-     libffi-dev \\r
-     && apt-get clean\r
+      && apt-get install -y \\r
+      libcurl4-openssl-dev \\r
+      libcurl3 \\r
+      cmake \\r
+      git \\r
+      build-essential \\r
+      automake \\r
+      autoconf-archive \\r
+      autoconf \\r
+      pkg-config \\r
+      gawk \\r
+      libtool \\r
+      wget \\r
+      zlib1g-dev \\r
+      libffi-dev \\r
+      && apt-get clean\r
 \r
 # Install mdclog using debian package hosted at packagecloud.io\r
 ARG MDC_VER=0.0.3-1\r
@@ -42,6 +42,12 @@ RUN wget -nv --content-disposition https://packagecloud.io/o-ran-sc/staging/pack
 RUN dpkg -i rmr_${RMR_VER}_amd64.deb\r
 RUN dpkg -i rmr-dev_${RMR_VER}_amd64.deb\r
 \r
+# Install Hiredis Library\r
+RUN cd /tmp/\r
+RUN git clone https://github.com/redis/hiredis.git\r
+RUN cd hiredis\r
+RUN make all\r
+\r
 ##-----------------------------------\r
 # Now install the program\r
 #------------------------------------\r
@@ -59,12 +65,6 @@ FROM ubuntu:16.04
 \r
 ARG STAGE_DIR\r
 \r
-# Install Hiredis Library\r
-RUN cd /tmp/\r
-RUN git clone https://github.com/redis/hiredis.git\r
-RUN cd hiredis\r
-RUN make all\r
-\r
 # copy just the needed libraries install it into the final image\r
 RUN cd ${STAGE_DIR}/src\r
 COPY --from=ricbuild ${STAGE_DIR}/*.deb /tmp/\r