Enhance Dockerfile: add progress bar for .NET SDK download and ensure file integrity before proceeding
This commit is contained in:
@@ -69,9 +69,10 @@ RUN Xvfb :99 -screen 0 1024x768x16 & \
|
|||||||
|
|
||||||
# Download and install .NET SDK with virtual display
|
# Download and install .NET SDK with virtual display
|
||||||
RUN cd /tmp \
|
RUN cd /tmp \
|
||||||
&& wget https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.301/dotnet-sdk-9.0.301-win-x64.exe \
|
&& 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)" \
|
&& echo "Download completed, file size: $(ls -lh dotnet-sdk-9.0.301-win-x64.exe)" \
|
||||||
&& sleep 2 \
|
&& sleep 3 \
|
||||||
&& Xvfb :99 -screen 0 1024x768x16 & \
|
&& Xvfb :99 -screen 0 1024x768x16 & \
|
||||||
XVFB_PID=$! \
|
XVFB_PID=$! \
|
||||||
&& sleep 3 \
|
&& sleep 3 \
|
||||||
|
Reference in New Issue
Block a user