-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
36 lines (29 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM debian:11
ENV DEBIAN_FRONTEND noninteractive
# install dependencies
RUN apt-get update && \
apt-get install -y build-essential cmake git python3 python3-pip wget
# copy
COPY . /build
WORKDIR /build
# get datasets
RUN cd datasets && \
wget https://github.com/IAIK/CryptoTL/releases/download/v1.0.0/IMDB-test-SBERT.csv && \
wget https://github.com/IAIK/CryptoTL/releases/download/v1.0.0/IMDB-train-SBERT.csv && \
wget https://github.com/IAIK/CryptoTL/releases/download/v1.0.0/SBERT-youtube-combined.csv && \
wget https://github.com/IAIK/CryptoTL/releases/download/v1.0.0/Twitter-test-SBERT.csv && \
wget https://github.com/IAIK/CryptoTL/releases/download/v1.0.0/Twitter-train-SBERT.csv && \
cd ..
RUN pip3 install -r requirements.txt
# compile SEAL:
RUN cd cpp && \
rm -rf SEAL && \
git clone https://github.com/microsoft/SEAL.git && \
cd SEAL && \
git checkout 4.0.0 && \
mkdir build && \
cd build && \
cmake .. && \
make -j 4 && \
cd ../../..
CMD ["/bin/bash"]