docker-unipi/Dockerfile

13 lines
687 B
Docker
Raw Normal View History

2022-07-23 08:31:07 +00:00
FROM ocaml/opam:ubuntu-20.04-ocaml-4.14 AS opam
COPY mirage-unikernel-unipi-spt.opam /home/opam/opam-repository/packages/mirage-unikernel-unipi-spt/mirage-unikernel-unipi-spt.0.0.1~dev/opam
2022-08-08 14:12:51 +00:00
RUN sudo apt update && opam update && opam depext mirage-unikernel-unipi-spt && opam install mirage-unikernel-unipi-spt
RUN bindir="$(opam config var bin)"; cp $bindir/unipi.spt $bindir/solo5-elftool $bindir/solo5-spt .
2022-07-23 08:31:07 +00:00
FROM ubuntu:20.04
COPY --from=opam /home/opam/unipi.spt /unipi.spt
COPY --from=opam /home/opam/solo5-elftool /home/opam/solo5-spt /usr/local/bin/
2022-07-23 08:31:07 +00:00
COPY entrypoint.sh /entrypoint.sh
RUN apt update && apt install -y iproute2
2022-07-23 09:24:12 +00:00
EXPOSE 80
2022-07-23 08:31:07 +00:00
ENTRYPOINT ["/entrypoint.sh", "/unipi.spt"]