Enhance Dockerfile: improve .NET SDK download process with progress bar and remove redundant checks
This commit is contained in:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user