|
1 |
| -FROM ocaml/opam:debian-12-ocaml-4.14@sha256:45b04e2a4c933c57549382045dfac12cb7e872cace0456f92f4b022066e48111 AS build |
| 1 | +FROM ocaml/opam:debian-12-ocaml-4.14@sha256:14f4cc396d19e5eba0c4cd8258eedd1045091f887920ba53431e1e05110311fc AS build |
2 | 2 | RUN sudo ln -f /usr/bin/opam-2.1 /usr/bin/opam && opam init --reinit -ni
|
3 | 3 | RUN sudo apt-get update && sudo apt-get install -y capnproto graphviz libcapnp-dev libev-dev libffi-dev libgmp-dev libsqlite3-dev pkg-config
|
4 |
| -RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 30b1b97d735732e40996cf2e6b06d478ac40633f && opam update |
5 |
| -COPY --chown=opam \ |
6 |
| - vendor/ocurrent/current_github.opam \ |
7 |
| - vendor/ocurrent/current_git.opam \ |
8 |
| - vendor/ocurrent/current.opam \ |
9 |
| - vendor/ocurrent/current_web.opam \ |
10 |
| - /src/vendor/ocurrent/ |
11 |
| -COPY --chown=opam \ |
12 |
| - vendor/ocluster/current_ocluster.opam \ |
13 |
| - vendor/ocluster/ocluster-api.opam \ |
14 |
| - /src/vendor/ocluster/ |
| 4 | +RUN cd ~/opam-repository && git fetch -q origin master && git reset --hard 56e31a3bc1fd0bfd87e5251972e806b8f78082a5 && opam update |
| 5 | + |
15 | 6 | WORKDIR /src
|
16 |
| -RUN opam pin add -yn current_github.dev "./vendor/ocurrent" && \ |
17 |
| - opam pin add -yn current_git.dev "./vendor/ocurrent" && \ |
18 |
| - opam pin add -yn current.dev "./vendor/ocurrent" && \ |
19 |
| - opam pin add -yn current_web.dev "./vendor/ocurrent" && \ |
20 |
| - opam pin add -yn current_ocluster.dev "./vendor/ocluster" && \ |
21 |
| - opam pin add -yn ocluster-api.dev "./vendor/ocluster" |
| 7 | +# See https://github.com/ocurrent/ocaml-docs-ci/pull/177#issuecomment-2445338172 |
| 8 | +RUN sudo chown opam:opam $(pwd) |
| 9 | + |
| 10 | +# We want to cache the installation of dependencies prior to pulling in changes from the source dir |
| 11 | +COPY --chown=opam ./ocaml-docs-ci.opam /src/ |
| 12 | +RUN opam install -y --deps-only . |
22 | 13 |
|
23 |
| -COPY --chown=opam ocaml-docs-ci.opam /src/ |
24 |
| -RUN opam install --deps-only . |
25 |
| -ADD --chown=opam . . |
26 |
| -RUN opam exec -- dune build ./_build/install/default/bin/ocaml-docs-ci ./_build/install/default/bin/ocaml-docs-ci-solver && cp ./_build/install/default/bin/ocaml-docs-ci ./_build/install/default/bin/ocaml-docs-ci-solver . |
| 14 | +COPY --chown=opam . . |
| 15 | +RUN opam exec -- dune build ./_build/install/default/bin/ocaml-docs-ci ./_build/install/default/bin/ocaml-docs-ci-solver |
| 16 | +RUN cp ./_build/install/default/bin/ocaml-docs-ci ./_build/install/default/bin/ocaml-docs-ci-solver . |
27 | 17 |
|
28 | 18 | FROM debian:12
|
29 | 19 | RUN apt-get update && apt-get install rsync libev4 openssh-client curl gnupg2 dumb-init git graphviz libsqlite3-dev ca-certificates netbase gzip bzip2 xz-utils unzip tar -y --no-install-recommends
|
|
0 commit comments