From 72f5f9500f859e588535df163617c3e7a67850b9 Mon Sep 17 00:00:00 2001 From: B3ni Date: Mon, 7 Jul 2025 14:28:58 +0200 Subject: [PATCH] Refactor Dockerfile: streamline Wine initialization and .NET installation process --- Dockerfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 9fa7bd0..7d3e434 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,20 +34,20 @@ ENV DISPLAY=:99.0 ENV WINEDLLOVERRIDES="mscoree,mshtml=" # Initialize Wine and install .NET for Windows -RUN mkdir -p /tmp/.X11-unix \ - && chmod 1777 /tmp/.X11-unix \ - && Xvfb :99 -screen 0 1024x768x16 -ac & \ - && sleep 3 \ - && timeout 60 wine wineboot --init \ - && sleep 5 \ - && 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 \ - && 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 \ - && timeout 180 wine dotnet-sdk-9.0.301-win-x64.exe /quiet /install \ - && rm -f *.exe \ - && pkill Xvfb \ - && chown -R container:container /opt/wine +RUN mkdir -p /tmp/.X11-unix; \\\ + chmod 1777 /tmp/.X11-unix; \\\ + Xvfb :99 -screen 0 1024x768x16 -ac & \\\ + sleep 3; \\\ + timeout 60 wine wineboot --init; \\\ + sleep 5; \\\ + 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; \\\ + 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; \\\ + timeout 180 wine dotnet-sdk-9.0.301-win-x64.exe /quiet /install; \\\ + rm -f *.exe; \\\ + pkill Xvfb; \\\ + chown -R container:container /opt/wine USER container ENV USER=container HOME=/home/container