Browse Source

Touch up Dockerfile

Ian Goldberg 2 years ago
parent
commit
2df1160f1f
1 changed files with 7 additions and 7 deletions
  1. 7 7
      Docker/Dockerfile

+ 7 - 7
Docker/Dockerfile

@@ -1,12 +1,12 @@
 FROM ubuntu:20.04
 ARG DEBIAN_FRONTEND=noninteractive 
 #the above line is avoid interaction
-RUN apt update && apt install -y wget git build-essential net-tools iproute2 iperf iputils-ping libgmp-dev libbsd-dev libssl-dev libboost-all-dev iproute2 iperf iputils-ping wget cargo cmake
+RUN apt update && apt install -y wget git build-essential net-tools iproute2 iperf iputils-ping libgmp-dev libbsd-dev libssl-dev libboost-all-dev iproute2 iperf iputils-ping wget cargo cmake time
 WORKDIR /root
-COPY . duoram
 RUN git clone https://github.com/encryptogroup/OTExtension.git
-RUN cd OTExtension/ && mkdir build && cd build && cmake .. && make
-RUN cd duoram/preprocessing && make
-RUN cd duoram/duoram-online && make
-RUN cd duoram/2p-preprocessing && make
-RUN cd duoram/cpir-read/cxx && make test0 test1 spir_test0 spir_test1
+RUN cd OTExtension/ && git checkout a9aa1ac94b7b3f171424af26c211c13dd342f712 && mkdir build && cd build && cmake .. && make
+COPY . duoram
+RUN cd duoram/preprocessing && make -j`nproc`
+RUN cd duoram/duoram-online && make -j`nproc`
+RUN cd duoram/2p-preprocessing && make -j`nproc`
+RUN cd duoram/cpir-read/cxx && make -j`nproc`