Refactor Dockerfile: improve formatting and readability of Wine and .NET installation commands

This commit is contained in:
2025-07-07 14:30:55 +02:00
parent 26bcd42074
commit ba52f7fa11

View File

@@ -34,19 +34,19 @@ ENV DISPLAY=:99.0
ENV WINEDLLOVERRIDES="mscoree,mshtml=" ENV WINEDLLOVERRIDES="mscoree,mshtml="
# Initialize Wine and install .NET for Windows # Initialize Wine and install .NET for Windows
RUN mkdir -p /tmp/.X11-unix && \\\ RUN mkdir -p /tmp/.X11-unix && \
chmod 1777 /tmp/.X11-unix && \\\ chmod 1777 /tmp/.X11-unix && \
(Xvfb :99 -screen 0 1024x768x16 -ac &) && \\\ (Xvfb :99 -screen 0 1024x768x16 -ac & ) && \
sleep 3 && \\\ sleep 3 && \
timeout 60 wine wineboot --init && \\\ timeout 60 wine wineboot --init && \
sleep 5 && \\\ sleep 5 && \
cd /tmp && \\\ cd /tmp && \
wget -q https://download.microsoft.com/download/6/6/1/661c9a9c-9c54-4f8b-b1c6-89d88c0f3d68/dotnet-runtime-9.0.6-win-x64.exe && \\\ wget -q https://download.microsoft.com/download/6/6/1/661c9a9c-9c54-4f8b-b1c6-89d88c0f3d68/dotnet-runtime-9.0.6-win-x64.exe && \
timeout 180 wine dotnet-runtime-9.0.6-win-x64.exe /quiet /install && \\\ timeout 180 wine dotnet-runtime-9.0.6-win-x64.exe /quiet /install && \
wget -q https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.301/dotnet-sdk-9.0.301-win-x64.exe && \\\ wget -q https://builds.dotnet.microsoft.com/dotnet/Sdk/9.0.301/dotnet-sdk-9.0.301-win-x64.exe && \
timeout 180 wine dotnet-sdk-9.0.301-win-x64.exe /quiet /install && \\\ timeout 180 wine dotnet-sdk-9.0.301-win-x64.exe /quiet /install && \
rm -f *.exe && \\\ rm -f *.exe && \
pkill Xvfb && \\\ pkill Xvfb && \
chown -R container:container /opt/wine chown -R container:container /opt/wine
USER container USER container