Skip to content

Instantly share code, notes, and snippets.

@edwintorok
Created Apr 11, 2016
Embed
What would you like to do?
Build using opam container
.git/
_build/
Dockerfile
.dockerignore
.gitignore
setup.data
setup.exe
setup.log
*.native
FROM ocaml/opam:debian
ENV OPAMJOBS 8
COPY opam /home/opam/app/
RUN opam pin add -n myapp /home/opam/app
RUN cd /home/opam/opam-repository && \
git pull && opam update && \
opam depext -u myapp
RUN opam install --deps-only myapp
COPY . /home/opam/app/
RUN opam install myapp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment