-
Notifications
You must be signed in to change notification settings - Fork 150
/
Dockerfile-GHA
43 lines (34 loc) · 1.71 KB
/
Dockerfile-GHA
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:22.04 as build
RUN DEBIAN_FRONTEND=noninteractive apt-get update -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y build-essential libgmp-dev \
libbenchmark-dev nasm nlohmann-json3-dev libsecp256k1-dev libomp-dev \
libpqxx-dev git libssl-dev cmake libgrpc++-dev libprotobuf-dev grpc-proto \
libsodium-dev protobuf-compiler protobuf-compiler-grpc uuid-dev && \
rm -fr /var/cache/apt/*
WORKDIR /usr/src/app
COPY ./src ./src
COPY ./test ./test
COPY ./tools ./tools
COPY Makefile .
RUN make generate
RUN make -j
FROM ubuntu:22.04 as executor
WORKDIR /app
COPY ./testvectors ./testvectors
COPY ./config ./config
COPY ./src/main_sm/fork_1/scripts/rom.json ./src/main_sm/fork_1/scripts/rom.json
COPY ./src/main_sm/fork_2/scripts/rom.json ./src/main_sm/fork_2/scripts/rom.json
COPY ./src/main_sm/fork_3/scripts/rom.json ./src/main_sm/fork_3/scripts/rom.json
COPY ./src/main_sm/fork_4/scripts/rom.json ./src/main_sm/fork_4/scripts/rom.json
COPY ./src/main_sm/fork_5/scripts/rom.json ./src/main_sm/fork_5/scripts/rom.json
COPY ./src/main_sm/fork_6/scripts/rom.json ./src/main_sm/fork_6/scripts/rom.json
COPY ./src/main_sm/fork_7/scripts/rom.json ./src/main_sm/fork_7/scripts/rom.json
COPY ./src/main_sm/fork_8/scripts/rom.json ./src/main_sm/fork_8/scripts/rom.json
COPY ./src/main_sm/fork_9/scripts/rom.json ./src/main_sm/fork_9/scripts/rom.json
RUN DEBIAN_FRONTEND=noninteractive apt update && \
DEBIAN_FRONTEND=noninteractive apt install -y libgmp-dev \
nlohmann-json3-dev libsecp256k1-dev libomp-dev libpqxx-dev libssl-dev \
libgrpc++-dev libprotobuf-dev grpc-proto libsodium-dev && \
rm -fr /var/cache/apt/*
COPY --from=build /usr/src/app/build/zkProver /usr/local/bin/zkProver
ENTRYPOINT []