mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 17:26:28 +00:00
update to use @avsm Alpine OCaml images
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
26899fa911
commit
34d8226a4d
@ -1,4 +1,4 @@
|
||||
FROM justincormack/alpine-pkgsrc-ocaml:latest
|
||||
FROM ocaml/opam:alpine-3.3_ocaml-4.02.3
|
||||
|
||||
ENV \
|
||||
OPAMYES=true \
|
||||
@ -8,10 +8,6 @@ ENV \
|
||||
OCAML_TOPLEVEL_PATH="/root/.opam/4.02.3/lib/toplevel" \
|
||||
PATH=/root/.opam/4.02.3/bin:$PATH
|
||||
|
||||
RUN mkdir -p /ocaml/src/9pudfuse
|
||||
WORKDIR /ocaml/src/9pudfuse
|
||||
|
||||
COPY . /ocaml/src/9pudfuse
|
||||
RUN opam install result stringext fd-send-recv
|
||||
RUN ocamlbuild -tag debug -use-ocamlfind -package stringext,fd-send-recv,result fuse_socket_9p.native
|
||||
|
||||
COPY . .
|
||||
RUN opam depext -i result stringext fd-send-recv
|
||||
RUN opam config exec -- ocamlbuild -tag debug -use-ocamlfind -package stringext,fd-send-recv,result fuse_socket_9p.native
|
||||
|
@ -3,7 +3,7 @@ all: 9pudfuse
|
||||
9pudfuse: Dockerfile fuse_socket_9p.ml
|
||||
docker build -t 9pudfuse:test .
|
||||
docker run 9pudfuse:test \
|
||||
cat /ocaml/src/9pudfuse/fuse_socket_9p.native > 9pudfuse
|
||||
cat fuse_socket_9p.native > 9pudfuse
|
||||
chmod 755 9pudfuse
|
||||
|
||||
clean:
|
||||
|
Loading…
Reference in New Issue
Block a user