webmachine-flambda.dockerfile 664 B

12345678910111213141516171819202122232425
  1. FROM ocurrent/opam:debian-10-ocaml-4.11-flambda
  2. ENV DIR webmachine
  3. # https://blog.packagecloud.io/eng/2017/02/21/set-environment-variable-save-thousands-of-system-calls/
  4. ENV TZ :/etc/localtime
  5. # https://caml.inria.fr/pub/docs/manual-ocaml/libref/Gc.html
  6. # https://linux.die.net/man/1/ocamlrun
  7. # https://blog.janestreet.com/memory-allocator-showdown/
  8. ENV OCAMLRUNPARAM a=2,o=240
  9. RUN sudo apt-get install -y libpq-dev libev-dev pkg-config m4
  10. WORKDIR /${DIR}
  11. COPY src/tfb.opam src/Makefile /${DIR}/
  12. COPY src/lib.opam src/Makefile /${DIR}/
  13. RUN make install
  14. COPY ./src /${DIR}
  15. RUN sudo chown -R opam: . && make build
  16. ENTRYPOINT _build/default/src/bin/tfb.exe