QtWebEngine app cannot be started in Docker with Windows Servercore base image.
-
I have a Docker image based on Windows Server Core (mcr.microsoft.com/dotnet/framework/sdk:4.8-windowsservercore-ltsc2019). Additionally, the 2019 redistributable and directx_Jun2010_redist.exe is also installed. My Qt UnitTest app runs on this image without integrated QtWebengine but with QtGui and QtCore. Now I want to run a Qt UnitTest app with integrated QtWebengineWidgets and Core. For this, I have also copied additional dependencies such as the resources and translations folder, as well as QWebengineProcess.exe into the image. Basically, all dependencies that windeployqt found are in a separate folder. Additionally, I have also copied the entire Qt installation folder into a separate directory. So I have three directories:
UnitTest-App
platform
Qt
Following variables are set in dockerfile:
ENV QTWEBENGINE_CHROMIUM_FLAGS="--no-sandbox --disable-gpu --disable-software-rasterizer --disable-accelerated-2d-canvas --disable-accelerated-video-decode --disable-accelerated-video-encode --disable-threaded-compositing --single-process --enable-logging --v=1 --enable-logging=stderr --v=1"
ENV QTWEBENGINE_DISABLE_SANDBOX=1I add the directories one by one to the PATH variable after starting the container and try to start the app after each addition. The app without QWebengine runs. However, unfortunately, it does not run with it. I also receive no feedback from the app, as if there might still be missing dependencies. In the container, I also ran windeployqt again, it ran without errors, and still, the app cannot be started. I request support. Thank you.