2017-01-31 04:26:57 -05:00
|
|
|
# Pin the base image to a specific hash for maximum reproducibility.
|
2018-11-03 13:25:40 -04:00
|
|
|
# It will probably still work on newer images, though, unless Debian
|
2017-01-31 04:26:57 -05:00
|
|
|
# changes some compiler optimisations (unlikely).
|
2019-08-25 13:41:09 -04:00
|
|
|
#FROM ocurrent/opam:alpine-3.10-ocaml-4.08
|
2019-11-17 09:25:42 -05:00
|
|
|
FROM ocurrent/opam@sha256:3f3ce7e577a94942c7f9c63cbdd1ecbfe0ea793f581f69047f3155967bba36f6
|
2017-01-28 08:44:21 -05:00
|
|
|
|
|
|
|
# Pin last known-good version for reproducible builds.
|
2017-01-31 04:26:57 -05:00
|
|
|
# Remove this line (and the base image pin above) if you want to test with the
|
|
|
|
# latest versions.
|
2020-04-29 09:58:01 -04:00
|
|
|
RUN cd ~/opam-repository && git fetch origin master && git reset --hard 3548c2a8537029b8165466cd9c5a94bb7bc30405 && opam update
|
2017-01-28 08:44:21 -05:00
|
|
|
|
2020-04-29 09:58:01 -04:00
|
|
|
RUN opam depext -i -y mirage.3.7.6 lwt.5.2.0
|
2017-01-09 11:45:16 -05:00
|
|
|
RUN mkdir /home/opam/qubes-mirage-firewall
|
|
|
|
ADD config.ml /home/opam/qubes-mirage-firewall/config.ml
|
|
|
|
WORKDIR /home/opam/qubes-mirage-firewall
|
2017-03-05 11:31:04 -05:00
|
|
|
RUN opam config exec -- mirage configure -t xen && make depend
|
|
|
|
CMD opam config exec -- mirage configure -t xen && \
|
2017-01-09 11:45:16 -05:00
|
|
|
opam config exec -- make tar
|