Enhance Dockerfile and entrypoint: update Wine installation process for improved security and add integration test script for Wine and .NET

This commit is contained in:
2025-07-07 00:53:45 +02:00
parent 0e663abb0a
commit 12091eb3bc
3 changed files with 40 additions and 13 deletions

View File

@@ -12,6 +12,14 @@ export DOTNET_ROOT=/usr/share/
Xvfb :99 -screen 0 1024x768x16 &
export DISPLAY=:99.0
# Initialize Wine prefix if it doesn't exist
if [ ! -d "$WINEPREFIX" ]; then
echo "Initializing Wine prefix..."
wineboot --init
winetricks -q corefonts
echo "Wine initialization complete."
fi
# print the dotnet version on startup
printf "\033[1m\033[33mcontainer@pelican~ \033[0mdotnet --version\n"
dotnet --version