Dockerfile 1.1 KB

123456789101112131415161718192021222324252627
  1. FROM ubuntu:16.04
  2. RUN apt update && apt install
  3. RUN apt -y install git cmake wget make vim python psmisc build-essential
  4. RUN apt -y install m4 libgmp3-dev libmpfr-dev libmpfr-doc libmpfr4 libmpfr4-dbg
  5. RUN apt -y install software-properties-common lsb-release libssl-dev apt-transport-https libssl-dev python-numpy
  6. RUN add-apt-repository ppa:ubuntu-toolchain-r/test
  7. RUN apt update
  8. RUN apt -y install gcc-6 g++-6
  9. RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-6
  10. RUN export CC=/usr/bin/gcc-6
  11. RUN export CXX=/usr/bin/g++-6
  12. COPY SPIR.tar.gz /pir/
  13. WORKDIR /pir/
  14. RUN tar -xf SPIR.tar.gz
  15. #Setup cmake 3.23.1
  16. RUN apt remove -y --purge --auto-remove cmake
  17. RUN tar -xf cmake-3.23.1.tar.gz
  18. RUN cd cmake-3.23.1 && ./bootstrap && make && make install
  19. RUN git clone https://github.com/microsoft/SEAL.git
  20. RUN cd SEAL && git checkout 3.2.0 && cd native/src && cmake . -DSEAL_USE_CXX17=OFF && make && make install
  21. RUN git clone https://git-crysp.uwaterloo.ca/piros/SealPIR.git
  22. RUN cd SealPIR && git checkout piros && cmake . && make