Skip to content

Commit

Permalink
Save Dockerfile for the docker image used for verifying code
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanBlanchard committed Nov 2, 2024
1 parent 67c708c commit 5e17c2f
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions code/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
FROM alpine:latest

RUN apk add \
bash \
build-base \
bzip2 \
ca-certificates \
curl \
diffutils \
gcc \
git \
make \
opam \
patch \
tar \
unzip \
wget \
which \
z3

RUN opam init -c 4.14.2 --disable-sandboxing

RUN opam install --confirm-level=unsafe-yes \
dune \
dune-configurator \
dune-site \
alt-ergo \
coq \
menhir \
ocamlgraph \
unionFind \
why3 \
why3-coq \
yaml \
yojson \
zarith \
ppx_deriving \
ppx_deriving_yojson \
ppx_deriving_yaml

ENV HOME="/root"

ENV OPAM_SWITCH_PREFIX="$HOME/.opam/4.14.2"
ENV CAML_LD_LIBRARY_PATH="$OPAM_SWITCH_PREFIX/lib/stublibs:$OPAM_SWITCH_PREFIX/lib/ocaml/stublibs:$OPAM_SWITCH_PREFIX/lib/ocaml"
ENV OCAML_TOPLEVEL_PATH="$OPAM_SWITCH_PREFIX/lib/toplevel"
ENV PATH="$OPAM_SWITCH_PREFIX/bin:$PATH"

RUN wget https://git.frama-c.com/pub/frama-c/-/archive/master/frama-c-master.tar.gz
RUN tar xzf frama-c-master.tar.gz
RUN make PREFIX=$OPAM_SWITCH_PREFIX RELEASE=yes -C frama-c-master install

RUN why3 config detect

0 comments on commit 5e17c2f

Please sign in to comment.