-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
37 lines (31 loc) · 1.46 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
33
34
35
36
37
ARG BASE_TAG="latest"
FROM coqorg/base:${BASE_TAG}
ARG COQ_EXTRA_OPAM="coq-bignums"
ENV COQ_EXTRA_OPAM="${COQ_EXTRA_OPAM}"
# The following variable should be empty for ocaml < 4.06 or coq <= 8.7
ARG COQ_INSTALL_SERAPI
ARG COQ_VERSION="dev"
ENV COQ_VERSION=${COQ_VERSION}
# This line is actually unneeded (was already enabled in coqorg/base)
SHELL ["/bin/bash", "--login", "-o", "pipefail", "-c"]
# hadolint ignore=SC2046
RUN set -x \
&& eval $(opam env "--switch=${COMPILER}" --set-switch) \
&& opam update -y -u \
&& opam pin add -n -k version coq ${COQ_VERSION} \
&& opam install -y -v -j "${NJOBS}" coq ${COQ_EXTRA_OPAM} ${COQ_INSTALL_SERAPI:+coq-serapi} \
&& opam clean -a -c -s --logs \
&& chmod -R g=u /home/coq/.opam \
&& opam config list && opam list
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="The Coq Proof Assistant" \
org.label-schema.description="Coq is a formal proof management system. It provides a formal language to write mathematical definitions, executable algorithms and theorems together with an environment for semi-interactive development of machine-checked proofs." \
org.label-schema.url="https://coq.inria.fr/" \
org.label-schema.vcs-ref=${VCS_REF} \
org.label-schema.vcs-url="https://github.com/coq/coq" \
org.label-schema.vendor="The Coq Development Team" \
org.label-schema.version=${COQ_VERSION} \
org.label-schema.schema-version="1.0" \
maintainer="erik@martin-dorel.org"