update to use @avsm Alpine OCaml images

Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
Justin Cormack 2016-01-06 15:07:39 +00:00
parent 26899fa911
commit 34d8226a4d
2 changed files with 5 additions and 9 deletions

View File

@ -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

View File

@ -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: