From 683701d06797022a0e6329447031f0ad33cb2fa0 Mon Sep 17 00:00:00 2001 From: b3ni15 Date: Mon, 7 Jul 2025 00:34:02 +0200 Subject: [PATCH] Enhance Dockerfile: improve .NET SDK download process with progress bar and remove redundant checks --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2f8370a..65a0a4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,12 +67,13 @@ RUN Xvfb :99 -screen 0 1024x768x16 & \ && wineserver --wait \ && kill $XVFB_PID || true -# Download and install .NET SDK with virtual display +# Download .NET SDK RUN cd /tmp \ && wget --progress=bar:force https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.301/dotnet-sdk-9.0.301-win-x64.exe \ - && while [ ! -f dotnet-sdk-9.0.301-win-x64.exe ] || [ ! -s dotnet-sdk-9.0.301-win-x64.exe ]; do sleep 1; done \ - && echo "Download completed, file size: $(ls -lh dotnet-sdk-9.0.301-win-x64.exe)" \ - && sleep 3 \ + && echo "Download completed, file size: $(ls -lh dotnet-sdk-9.0.301-win-x64.exe)" + +# Install .NET SDK with virtual display +RUN cd /tmp \ && Xvfb :99 -screen 0 1024x768x16 & \ XVFB_PID=$! \ && sleep 3 \