-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
23 lines (16 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
23 lines (16 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
ARG rocq_image="rocq/rocq-prover:9.0.1"
FROM ${rocq_image}
MAINTAINER Avi Shinnar "shinnar@us.ibm.com"
# needs to be a subdirectory to avoid causing problems with
# the /home/rocq/.opam directory (and probably other stuff)
WORKDIR /home/rocq
COPY --chown=rocq:rocq Formal_ML.opam ./formal_ml/
RUN ["/bin/bash", "--login", "-c", "set -x \
&& if [ -n \"${COMPILER_EDGE}\" ]; then opam switch ${COMPILER_EDGE} && eval $(opam env); fi \
&& opam update -y \
&& opam install --deps-only --with-test --with-doc -y -j ${NJOBS} ./formal_ml \
&& opam clean -a -c -s --logs"]
COPY --chown=rocq:rocq _RocqProject Makefile Makefile.rocq_modules ./formal_ml/
COPY --chown=rocq:rocq rocq ./formal_ml/rocq
RUN ["/bin/bash", "--login", "-c", "set -x && cd formal_ml && \
make && make doc"]