Skip to content

Instantly share code, notes, and snippets.

@edwintorok
Created April 11, 2016 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwintorok/0149412fb55f58c0b7c5eb605adaa8fa to your computer and use it in GitHub Desktop.
Save edwintorok/0149412fb55f58c0b7c5eb605adaa8fa to your computer and use it in GitHub Desktop.
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