mirror of
https://github.com/linuxkit/linuxkit.git
synced 2026-01-04 23:10:21 +00:00
Plus a few more minor improvements: - compile with jbuilder. - start working on the control path. Signed-off-by: Thomas Gazagnaire <thomas@gazagnaire.org>
21 lines
657 B
Docker
21 lines
657 B
Docker
FROM ocaml/opam:alpine-3.5_ocaml-4.04.0
|
|
RUN git -C /home/opam/opam-repository pull origin master && opam update -u
|
|
|
|
RUN opam pin -n add conduit https://github.com/samoht/ocaml-conduit.git#fd
|
|
RUN opam pin -n add mirage-net-unix https://github.com/samoht/mirage-net-unix.git#fd
|
|
|
|
RUN opam depext -iy mirage-net-unix logs-syslog irmin-unix cohttp decompress
|
|
RUN opam depext -iy rawlink tuntap.1.0.0 jbuilder irmin-watcher inotify
|
|
|
|
RUN sudo mkdir -p /src /bin
|
|
COPY ./src /src
|
|
RUN sudo chown opam -R /src
|
|
|
|
USER opam
|
|
WORKDIR /src
|
|
|
|
RUN opam pin add tuntap 1.0.0
|
|
|
|
RUN opam config exec -- jbuilder build main.exe
|
|
RUN sudo cp /src/_build/default/main.exe /dhcp-client
|