Skip to content

Commit 7c99e22

Browse files
Sudha247sabine
authored andcommitted
Update to use Dune binary
1 parent 2a97f49 commit 7c99e22

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ RUN apk -U upgrade --no-cache && apk add --no-cache \
1313
oniguruma-dev \
1414
openssl-dev
1515

16-
ADD https://get.dune.build/2025-07-17/x86_64-unknown-linux-musl/dune-2025-07-17-x86_64-unknown-linux-musl.tar.gz .
17-
RUN tar xzf dune-2025-07-17-x86_64-unknown-linux-musl.tar.gz
18-
RUN mkdir -p /root/.local/bin \
19-
&& mv dune-2025-07-17-x86_64-unknown-linux-musl/dune /root/.local/bin/
20-
ENV PATH="/root/.local/bin:$PATH"
16+
RUN curl -sSL https://github.com/ocaml-dune/dune-bin-install/releases/download/v1/install.sh | sh -s 3.19.1 --install-root /usr --no-update-shell-config
2117
RUN dune --version
2218

2319
# Build project

HACKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ git clone https://github.com/<username>/OCaml.org.git
2424
cd OCaml.org
2525
```
2626

27-
Ensure you have [Dune Developer Preview](https://preview.dune.build) installed. Dune will manage the OCaml compiler along with all of the OCaml packages needed to build and run the project. By this point, we should all be using some Unix-like system (Linux, macOS, WSL2). We assume you are using the most recent version of Dune Developer Preview.
27+
Ensure you have [Dune Binary](https://github.com/ocaml-dune/dune-bin-install) installed. Dune will manage the OCaml compiler along with all of the OCaml packages needed to build and run the project. By this point, we should all be using some Unix-like system (Linux, macOS, WSL2). We assume you are using the most recent version of Dune.
2828

2929
If you would like to build using Dune installed via `opam`, make sure to remove the `dune.lock/` directories and use the same build commands present in the Makefile, skipping `dune pkg lock`.
3030

0 commit comments

Comments
 (0)