We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a55a81 commit 99ab49aCopy full SHA for 99ab49a
dockerfiles/ocaml-5.2.0.Dockerfile
@@ -5,7 +5,7 @@ FROM ocaml/opam:alpine-3.20-ocaml-5.2
5
ENV OPAMROOT /home/opam/.opam
6
7
# Ensures the container is re-built if dune/dune-project changes
8
-ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="dune,dune-project"
+ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="dune,dune-project,test/dune"
9
10
# Change to root user. All other images seem to use root, so let's do the same here
11
# hadolint ignore=DL3002
@@ -26,7 +26,7 @@ WORKDIR /app
26
COPY --exclude=.git --exclude=README.md . /app
27
28
# Cache dependencies
29
-RUN opam install . --yes
+RUN opam install . --yes --deps-only --with-test
30
31
# This runs dune build
32
RUN .codecrafters/compile.sh
0 commit comments