Skip to content

Commit 13d8367

Browse files
committed
Add Dockerfile
1 parent 2d849f6 commit 13d8367

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Dockerfile

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
FROM archlinux/base
2+
3+
# base-devel group and git.
4+
RUN pacman --noconfirm -Sy \
5+
base-devel git
6+
7+
# OPAM for Obliv-C.
8+
RUN pacman --noconfirm -Sy \
9+
ocaml ocaml-findlib opam
10+
RUN opam init --disable-sandboxing -y --compiler 4.06.0; \
11+
eval `opam config env`; \
12+
opam install -y camlp4 ocamlfind ocamlbuild batteries;
13+
14+
# Protobuf-C for linreg-mpc.
15+
RUN pacman --noconfirm -Sy \
16+
protobuf-c
17+
18+
# Install Obliv-C.
19+
RUN eval $(opam config env); \
20+
git clone https://github.com/samee/obliv-c.git root/obliv-c; \
21+
cd /root/obliv-c; \
22+
./configure && make
23+
24+
WORKDIR root/linreg-mpc
25+
26+
# Copy Sources and build linreg-mpc.
27+
COPY . .
28+
RUN eval $(opam config env); \
29+
export OBLIVC_PATH=/root/obliv-c; \
30+
make

0 commit comments

Comments
 (0)