Enhance Dockerfile: improve .NET SDK download process with progress bar and remove redundant checks

This commit is contained in:
2025-07-07 00:34:02 +02:00
parent e2b30b3f9e
commit 683701d067

View File

@@ -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 \