diff --git a/evaluator/images/dotnet/Dockerfile b/evaluator/images/dotnet/Dockerfile index 02b53e48..a2b8d532 100644 --- a/evaluator/images/dotnet/Dockerfile +++ b/evaluator/images/dotnet/Dockerfile @@ -2,8 +2,8 @@ FROM kelvin/base RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt-get install -y \ - dotnet6 \ - aspnetcore-runtime-6.0 \ + dotnet6=6.0.110-0ubuntu1~22.04.1 \ + aspnetcore-runtime-6.0=6.0.110-0ubuntu1~22.04.1 \ python3-pip && \ rm -rf /var/lib/apt/lists/* diff --git a/evaluator/images/dotnet/entry.py b/evaluator/images/dotnet/entry.py index c95cb8b5..8f7f5362 100755 --- a/evaluator/images/dotnet/entry.py +++ b/evaluator/images/dotnet/entry.py @@ -75,6 +75,8 @@ def build_dotnet_project(run_tests: bool) -> BuildResult: tests_path = "tests.xml" env = os.environ.copy() env["DOTNET_CLI_HOME"] = "/tmp/dotnet-cli-home" + # workaround for https://github.com/dotnet/core/issues/7868 + env["XDG_DATA_HOME"] = "/tmp/dotnet-cli-home" env["DOTNET_NOLOGO"] = "1" cmd = ['dotnet'] if run_tests: