update opam before pinning versions

This commit is contained in:
2026-10-25 14:19:31 +01:00
parent 2cbf8c0251
commit fbe4c70df1
+5 -1
View File
@@ -3,13 +3,17 @@
FROM ocaml/opam@sha256:f44a0401719551c26b8bdd990c5353aeb304f2896c1a4cc8d9159e95ab4446a2 AS builder
USER opam
WORKDIR /app
RUN cd /home/opam/opam-repository && git pull origin master
COPY --chown=opam:opam dune-project ./
RUN opam update
RUN opam pin add pgn_to_tex 0.1.0 -y && \
opam pin add dream 1.0.0 -y
RUN opam update && opam install -y dune dream pgn_to_tex
RUN opam install -y dune dream pgn_to_tex
COPY --chown=opam:opam . .
RUN opam exec -- dune build bin/main.exe