From 40b41e5c261be662f316b95e87503cc8f1e72fbf Mon Sep 17 00:00:00 2001 From: Shubham Tatvamasi Date: Mon, 10 May 2021 07:44:22 +0530 Subject: [PATCH] modified: Dockerfile --- Dockerfile | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/Dockerfile b/Dockerfile index 99f6073..cc8fb9c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,8 @@ RUN apt update && \ build-essential \ cmake \ unzip \ + wget \ + curl \ libfftw3-dev \ libmbedtls-dev \ libpcsclite-dev \ @@ -30,13 +32,10 @@ RUN apt update && \ WORKDIR /srsran -ADD https://github.com/srsran/srsRAN/archive/refs/tags/release_${SRSRAN_VERSION}.zip . - -ADD https://github.com/zeromq/libzmq/archive/refs/tags/v${LIBZMQ_VERSION}.zip . - -ADD https://github.com/zeromq/czmq/archive/refs/tags/v${CZMQ_VERSION}.zip . - -RUN unzip release_${SRSRAN_VERSION}.zip && \ +RUN wget https://github.com/srsran/srsRAN/archive/refs/tags/release_${SRSRAN_VERSION}.zip && \ + wget https://github.com/zeromq/libzmq/archive/refs/tags/v${LIBZMQ_VERSION}.zip && \ + wget https://github.com/zeromq/czmq/archive/refs/tags/v${CZMQ_VERSION}.zip && \ + unzip release_${SRSRAN_VERSION}.zip && \ unzip v${LIBZMQ_VERSION}.zip && \ unzip v${CZMQ_VERSION}.zip && \ rm *.zip @@ -61,9 +60,8 @@ WORKDIR /srsran/srsRAN-release_${SRSRAN_VERSION}/build RUN cmake .. && \ make && \ - ldconfig - -RUN mv ./srsenb/src/srsenb \ + ldconfig && \ + mv ./srsenb/src/srsenb \ ./srsepc/src/srsepc \ ./srsepc/src/srsmbms \ ./srsue/src/srsue \ @@ -71,9 +69,8 @@ RUN mv ./srsenb/src/srsenb \ WORKDIR /srsran/srsRAN-release_${SRSRAN_VERSION} -RUN mkdir -p /etc/srsran - -RUN find . -type f -name '*.example' -exec \ +RUN mkdir -p /etc/srsran && \ + find . -type f -name '*.example' -exec \ bash -c 'x={}; y=${x##*/}; z=${y%.example}; \ cp {} /etc/srsran/${z}' \;