I have created simple playground example to explain the issue here: playground
Following code works in public playground,
<script src="{{asset "myAssets/Chart.min.js" "link"}}"></script>
but It throws exception in Docker image(latest - 3.11.3):
Report "template" render failed.
Error when evaluating engine handlebars for template /myTemplate/template
(because) "asset" helper call failed
(because) asset myAssets/Chart.min.js not found
I also tried to use asset path starting with slash:
<script src="{{asset "/myAssets/Chart.min.js" "link"}}"></script>
It renders without error in Docker, but asset is not loaded - url contains two slashes: http://localhost:5488/assets/content//myAssets/Chart.min.js
Thanks for help.