blob: 9045e7c1bf2b3d1d909f51ed43e3a8b8e818dd28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
FROM ocaml/opam:alpine as build
# Install system dependencies
RUN sudo apk add --update libev-dev openssl-dev gmp-dev gmp
WORKDIR /home/opam
ADD . .
RUN opam exec -- dune build -j 1
FROM alpine:3.18.4 as run
RUN apk add --update libev openssl gmp
COPY --from=build /home/opam/_build/default/bin/main.exe /bin/app
ENTRYPOINT /bin/app
|