Skip to content

Commit

Permalink
Copy opam files before opam update
Browse files Browse the repository at this point in the history
This should ensure that changing dependencies will rerun `opam update`.
  • Loading branch information
polytypic committed Jan 25, 2024
1 parent bf0d66d commit 3b7edaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bench.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ocaml/opam:debian-ocaml-5.1
RUN sudo ln -sf /usr/bin/opam-2.1 /usr/bin/opam
WORKDIR bench-dir
COPY *.opam ./
RUN opam remote add origin https://opam.ocaml.org && \
opam update
COPY *.opam ./
RUN opam pin -yn --with-version=dev .
RUN opam install -y --deps-only --with-test .
COPY . ./
Expand Down

0 comments on commit 3b7edaf

Please sign in to comment.