Skip to content

Commit

Permalink
cleanup(docker): try to reduce parallelism when building dune
Browse files Browse the repository at this point in the history
  • Loading branch information
zshipko committed Apr 11, 2024
1 parent f1881a5 commit 2d2458b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ RUN sudo ln -sf /home/opam/.cargo/bin/rustc /usr/bin/rustc
WORKDIR /home/opam/src
RUN opam repository add opam-repository git+https://github.com/ocaml/opam-repository.git
RUN opam update -y
RUN opam install dune opam-monorepo -y
RUN opam install -j $(nproc) dune opam-monorepo -y
RUN opam repository add dune-universe git+https://github.com/dune-universe/opam-overlays.git
RUN opam monorepo pull
RUN eval $(opam env) && dune build ./bin/main.exe
RUN eval $(opam env) && dune build -j $(nproc) ./bin/main.exe

FROM debian:12
ENV PORT=6384
Expand Down

0 comments on commit 2d2458b

Please sign in to comment.