-
-
Save edwintorok/0149412fb55f58c0b7c5eb605adaa8fa to your computer and use it in GitHub Desktop.
Build using opam container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.git/ | |
_build/ | |
Dockerfile | |
.dockerignore | |
.gitignore | |
setup.data | |
setup.exe | |
setup.log | |
*.native |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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