When building and deploying Docker image with Laravel Octane server i can not get the static assets in /app/public served
Repo: kristjanjansen/octane
Deployment
https://octane.onrender.com/
it seems static assets in /app/public/ are not served, even when they are present in the dir:
/app/public/favicon.ico
/app/public/robots.txt
both give back 404. The error is handled by Laravel.
My assumption is that it’s something about the way Render serves or redirects static assets in Docker-built images, perhaps something similar how static sites are redirected to the root webserver path ?
See also how Laravel Vapor handles similar assets:
https://medium.com/@poursio/serving-static-files-from-your-root-domain-in-laravel-vapor-42547a41f5ec