From 83e0373340d6e1348f97e9ca1c128d2eed4fbfd0 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Mon, 4 Dec 2023 08:25:45 -0600 Subject: Restore dockerfile --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9045e7c..93d745d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,14 @@ FROM ocaml/opam:alpine as build RUN sudo apk add --update libev-dev openssl-dev gmp-dev gmp WORKDIR /home/opam +# Install dependencies +ADD wormhole.opam wormhole.opam +RUN opam install . --deps-only + +# Build project ADD . . -RUN opam exec -- dune build -j 1 +RUN opam exec -- dune build -j 1 + FROM alpine:3.18.4 as run -- cgit v1.2.3