mirror of
https://github.com/TheRealOwenRees/chess-scribe-api.git
synced 2026-11-18 10:02:06 +00:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
58a57fbb5f | ||
|
|
f145f4f452 |
+5
-6
@@ -1,18 +1,17 @@
|
|||||||
# --- STAGE 1: Build the native OCaml binary ---
|
# --- STAGE 1: Build the native OCaml binary ---
|
||||||
# ocaml/opam:debian-13-ocaml-5.4
|
# ocaml/opam:debian-13-ocaml-5.4
|
||||||
FROM ocaml/opam@sha256:82a44b5c39729dbea10a5aa394c544e8d2f6cadd2a8d3f7656c2259c72e3e55a AS builder
|
FROM ocaml/opam@sha256:f44a0401719551c26b8bdd990c5353aeb304f2896c1a4cc8d9159e95ab4446a2 AS builder
|
||||||
USER opam
|
USER opam
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
RUN cd /home/opam/opam-repository && git pull origin master
|
||||||
COPY --chown=opam:opam dune-project ./
|
COPY --chown=opam:opam dune-project ./
|
||||||
RUN opam update && \
|
RUN opam update && opam install -y dune dream pgn_to_tex
|
||||||
opam pin add -y pgn_to_tex https://github.com/TheRealOwenRees/pgn_to_tex.git#v0.0.1 && \
|
|
||||||
opam install -y dune dream pgn_to_tex
|
|
||||||
COPY --chown=opam:opam . .
|
COPY --chown=opam:opam . .
|
||||||
RUN opam exec -- dune build bin/main.exe
|
RUN opam exec -- dune build bin/main.exe
|
||||||
|
|
||||||
# --- STAGE 2: Lightweight runtime environment ---
|
# --- STAGE 2: Lightweight runtime environment ---
|
||||||
# debian:13.5-slim
|
# debian:13.7-slim
|
||||||
FROM debian@sha256:b6e2a152f22a40ff69d92cb397223c906017e1391a73c952b588e51af8883bf8
|
FROM debian@sha256:a29215f6a35e51e22adffa17f89e9d2ef06214e64a2bad10d765c46aea49f11f
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
# Configure apt to retry downloads up to 3 times if a packet gets corrupted
|
# Configure apt to retry downloads up to 3 times if a packet gets corrupted
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@
|
|||||||
(depends
|
(depends
|
||||||
ocaml
|
ocaml
|
||||||
(dream
|
(dream
|
||||||
(>= "1.0.0~alpha8"))
|
(>= "1.0.0"))
|
||||||
pgn_to_tex)
|
pgn_to_tex)
|
||||||
(tags
|
(tags
|
||||||
("chess" "pgn" "pdf")))
|
("chess" "pgn" "pdf")))
|
||||||
|
|||||||
Reference in New Issue
Block a user