I faced the same problem. My solution was to use a Docker image that contains a JRE, publish the .NET app as self contained and copy it to the JRE-Container in multiple build-steps