When I add the code with USER root
it deployed successfully without getting any errors.
USER app
RUN php artisan config:cache \
&& php artisan route:cache \
&& php artisan view:cache
USER root
But when I open the site fly open
, the Laravel app responds with a 500 SERVER ERROR
If a remove the code from the Dockerfile
the Laravel app works fine without the 500 SERVER ERROR
.
Can you help? Thank you very much.