forked from encryptogroup/GSHADE
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (33 loc) · 903 Bytes
/
Dockerfile
File metadata and controls
43 lines (33 loc) · 903 Bytes
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
37
38
39
40
41
42
43
FROM ubuntu:18.04 as downloader
RUN apt update &&\
apt install -y git
#Fetch repo
RUN git clone https://github.com/eduardo010174/GSHADE.git &&\
cd GSHADE/ &&\
cd util/ &&\
git clone https://github.com/eduardo010174/MIRACL.git
FROM ubuntu:18.04 as builder
RUN apt update &&\
apt install -y \
g++ \
make \
libgmp-dev \
libssl1.0-dev
COPY --from=0 /GSHADE /GSHADE
WORKDIR /GSHADE
#Compile Miracl
RUN cd util/ &&\
mkdir -p ./Miracl/ &&\
find ./MIRACL/ -type f -exec cp ${PWD}/'{}' ${PWD}/Miracl/ \; &&\
cd ./Miracl/ &&\
bash linux64 &&\
find . -type f -not -name '*.a' -not -name '*.h' -not -name '*.o' -not -name '.git*' | xargs rm
#Compile GSHADE
RUN make
FROM ubuntu:18.04 as runner
RUN apt update &&\
apt install -y \
libgmp10 \
libssl1.0
COPY --from=1 /GSHADE/dst.exe /GSHADE/dst.exe
WORKDIR /GSHADE