Download and Execute Choco Simply fails With no Reason

I’m trying to run the following docker file, on deployment step of Travis:

FROM mcr.microsoft.com/windows/servercore:ltsc2019

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV chocolateyVersion=1.4.0
WORKDIR /app
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol =  [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install dotnetcore-runtime --version 3.1.32 -y;  choco install aspnetcore-runtimepackagestore --version 3.1.32 -y

COPY /release-output-file .
ENTRYPOINT ["dotnet", "some_file_name.dll"]

But it fails out of nowhere, with no message. But here is the full log:

Sending build context to Docker daemon  789.9MB
Step 1/7 : FROM mcr.microsoft.com/windows/servercore:ltsc2019
ltsc2019: Pulling from windows/servercore
78f28541e48e: Pulling fs layer
56b530380bb3: Pulling fs layer
56b530380bb3: Verifying Checksum
56b530380bb3: Download complete
78f28541e48e: Verifying Checksum
78f28541e48e: Download complete
78f28541e48e: Pull complete
56b530380bb3: Pull complete
Digest: sha256:ea7b7af45052c49ca9157bd5ae9418f26babce9144450ac0830e20c7fbdd5583
Status: Downloaded newer image for mcr.microsoft.com/windows/servercore:ltsc2019
 ---> c6a454740582
Step 2/7 : SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
 ---> Running in 7270971a0da6
Removing intermediate container 7270971a0da6
 ---> 25fcc38b1c75
Step 3/7 : ENV chocolateyVersion=1.4.0
 ---> Running in 1ab504ca54ca
Removing intermediate container 1ab504ca54ca
 ---> 43f0e0970a8b
Step 4/7 : WORKDIR /app
 ---> Running in dc062d5c56e4
Removing intermediate container dc062d5c56e4
 ---> d96071f207d3
Step 5/7 : RUN Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol =  [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); choco install dotnetcore-runtime --version 3.1.32 -y;  choco install aspnetcore-runtimepackagestore --version 3.1.32 -y
 ---> Running in 32059d315d9d
The command "./.travis/docker_build.bat" failed and exited with 1 during .
Your build has been stopped.
container 32059d315d9d8714ac0e5e0f9cafffbb78016f145999e92e8c62b223cce394bb encountered an error during Start: failure in a Windows system call: The virtual machine or container exited unexpectedly. (0xc0370106)

I saw that servercore was updated a few weeks ago, maybe that’s the problem, but since Travis don’t support other builds versions, updating the image version is not an option. Is there some workaround to make this build work?
cc @joshua-anderson