-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
32 lines (24 loc) · 1.03 KB
/
Dockerfile
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
FROM ocaml/opam:debian-10-ocaml-4.13
RUN sudo apt install -y libcurl4-gnutls-dev libgmp-dev
WORKDIR /lang_agent/
RUN opam install dune
# sudo docker run -it lang_agent bash
ENV PATH /home/opam/.opam/4.13/bin/:$PATH
RUN /home/opam/.opam/4.13/bin/dune --version
#RUN apt-get -y install opam
RUN opam repo add coq-released https://coq.inria.fr/opam/released
RUN opam repo add coq-extra-dev https://coq.inria.fr/opam/extra-dev
RUN opam install --yes ppx_yojson_conv_lib coq
RUN opam install --yes ppx_yojson lwt_ppx containers lambdasoup uri ezcurl ppx_yojson_conv ppx_yojson_conv_lib ezcurl-lwt yojson
RUN opam install --yes coq-metacoq-template
RUN opam pin add --yes openai https://github.com/meta-introspector/openai-ocaml.git#main
COPY lib /lang_agent/lib
COPY bin /lang_agent/bin
COPY dune-project /lang_agent/
RUN opam install --yes --deps-only .
RUN opam install --yes stdio
RUN dune build .
# sudo docker build . -t lang_agent
# sudo docker run -it lang_agent bash
# dune exec bin/worker.exe
# sudo docker build . -t h4ckermike/lang_agent:dev