diff --git a/bazel/docker/fedora/Dockerfile b/bazel/docker/fedora/Dockerfile index fc3cb001aa..18a7504ae3 100644 --- a/bazel/docker/fedora/Dockerfile +++ b/bazel/docker/fedora/Dockerfile @@ -36,7 +36,7 @@ COPY . . FROM devel AS build RUN bazel version -RUN bazel build --config=ci //ortools/... //examples/... +RUN bazel build --java_runtime_version=remotejdk_21 --config=ci //ortools/... //examples/... FROM build AS test -RUN bazel test --config=ci //ortools/... //examples/... +RUN bazel test --java_runtime_version=remotejdk_21 --config=ci //ortools/... //examples/...