-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathDockerfile.web
More file actions
15 lines (14 loc) · 900 Bytes
/
Dockerfile.web
File metadata and controls
15 lines (14 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ocaml/opam:debian-13-ocaml-4.14 AS build
RUN sudo ln -f /usr/bin/opam-2.4 /usr/bin/opam && opam init --reinit -ni
RUN sudo apt-get update && sudo apt-get install libev-dev capnproto m4 pkg-config libgmp-dev libffi-dev -y --no-install-recommends
RUN cd ~/opam-repository && git fetch origin master && git reset --hard 2bf2bf6ea0c8867eede5e26c1c591999dd5a9ee1 && opam update
COPY --chown=opam opam-repo-ci-api.opam opam-repo-ci-web.opam opam-repo-ci-service.opam opam-ci-check.opam /src/
WORKDIR /src
RUN opam install -y --deps-only .
ADD --chown=opam . .
RUN opam exec -- dune build ./_build/install/default/bin/opam-repo-ci-web
FROM debian:13
RUN apt-get update && apt-get install ca-certificates libev4 dumb-init -y --no-install-recommends
WORKDIR /
ENTRYPOINT ["dumb-init", "/usr/local/bin/opam-repo-ci-web"]
COPY --from=build /src/_build/install/default/bin/opam-repo-ci-web /usr/local/bin/