qubes-mirage-firewall/Dockerfile

19 lines
940 B
Docker
Raw Normal View History

# Pin the base image to a specific hash for maximum reproducibility.
# It will probably still work on newer images, though, unless Debian
# changes some compiler optimisations (unlikely).
2020-05-19 12:35:22 +00:00
#FROM ocurrent/opam:alpine-3.10-ocaml-4.10
FROM ocurrent/opam@sha256:d30098ff92b5ee10cf7c11c17f2351705e5226a6b05aa8b9b7280b3d87af9cde
# Pin last known-good version for reproducible builds.
# Remove this line (and the base image pin above) if you want to test with the
# latest versions.
2020-05-19 12:35:22 +00:00
RUN cd ~/opam-repository && git fetch origin master && git reset --hard 4dd2620bcc821418bae53669a6c6163964c090a2 && opam update
2020-05-19 12:35:22 +00:00
RUN opam depext -i -y mirage.3.7.7 lwt.5.3.0
2017-01-09 16:45:16 +00: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 16:31:04 +00:00
RUN opam config exec -- mirage configure -t xen && make depend
CMD opam config exec -- mirage configure -t xen && \
2017-01-09 16:45:16 +00:00
opam config exec -- make tar