Skip to content

Commit 99ab49a

Browse files
committed
chore: Update OCaml Dockerfile to install dependencies with tests
1 parent 3a55a81 commit 99ab49a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: dockerfiles/ocaml-5.2.0.Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ FROM ocaml/opam:alpine-3.20-ocaml-5.2
55
ENV OPAMROOT /home/opam/.opam
66

77
# Ensures the container is re-built if dune/dune-project changes
8-
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="dune,dune-project"
8+
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="dune,dune-project,test/dune"
99

1010
# Change to root user. All other images seem to use root, so let's do the same here
1111
# hadolint ignore=DL3002
@@ -26,7 +26,7 @@ WORKDIR /app
2626
COPY --exclude=.git --exclude=README.md . /app
2727

2828
# Cache dependencies
29-
RUN opam install . --yes
29+
RUN opam install . --yes --deps-only --with-test
3030

3131
# This runs dune build
3232
RUN .codecrafters/compile.sh

0 commit comments

Comments
 (0)