This commit is contained in:
Simon Cruanes 2023-08-29 09:04:28 -04:00
parent 9853fca2de
commit b4221c9524
No known key found for this signature in database
GPG key ID: EBFFF6F283F3A2B4
2 changed files with 12 additions and 0 deletions

2
.dockerignore Normal file
View file

@ -0,0 +1,2 @@
_build
_opam

10
Dockerfile Normal file
View file

@ -0,0 +1,10 @@
FROM ocaml/opam:debian-unstable-ocaml-5.0 as base
RUN cd /home/opam/opam-repository; git fetch origin; git checkout 01487021cbdc2c54d643dbf5696e2211ca3db31d -q; opam upd
WORKDIR /home/opam/
COPY *.opam dune-project ./
COPY src src
COPY test test
RUN eval `opam env` && opam install . --deps-only -t
RUN eval `opam env` && dune build @install
RUN eval `opam env` && dune @runtest