mirror of
https://github.com/TheRealOwenRees/chess-scribe-api.git
synced 2026-11-18 10:02:06 +00:00
update opam before pinning versions
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user