Just a minor improvement to not re-download an opam since one's installed in the opam container already
+2
-4
Dockerfile
+2
-4
Dockerfile
···
1
1
FROM ocaml/opam:debian-12-ocaml-5.2 AS build
2
2
3
3
ARG NODE_VERSION=v24.11.1
4
-
ARG OPAM_VERSION=2.5.0
4
+
ARG OPAM_VERSION=2.5
5
5
ARG DUNE_VERSION=3.20.2
6
6
7
7
ARG GIT_REV
···
9
9
10
10
USER root
11
11
RUN apt-get update && apt-get install -y cmake git libev-dev libffi-dev libgmp-dev libssl-dev libsqlite3-dev libpcre3-dev pkg-config
12
-
13
-
RUN bash -c "curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh | bash -s -- --version $OPAM_VERSION"
14
-
RUN bash -c "chown opam:opam /bin/opam"
12
+
RUN ln -nsf /usr/bin/opam-${OPAM_VERSION} /usr/bin/opam
15
13
USER opam
16
14
17
15
WORKDIR /home/opam/pegasus
History
1 round
3 comments
anil.recoil.org
submitted
#0
expand 3 comments
ah, thanks! was running into issues with the included opam binary last time I tried, but it does seem to be building fine now
& thanks for the shout on upgrading; previously spent several days trying to get dependencies to cooperate on 5.3, guess something published an update in the interim
Yeah most things should work on OCaml 5.4; if not feel free to give me a ping on ocaml.zulipchat.com or bsky and I'll take a look -- I'm switching my PDS over to yours so I have a vested interest now ;-)
pull request successfully merged
Also too minor to send a patch for, but switching to OCaml 5.4 from 5.2 for the build also works fine with the dependency cone.