Improvements on performance and functionality of production builds.
Performance of Laravel from a mounted volume in Docker is truly awful. Like 900ms response time from super simple API calls. In a production build, where the code is just copied directly into the docker container, and config/route caching is enabled, the same service calls are under 100ms.
I updated the server dockerfile so it copies the code into the container instead of mounting it as a volume. Also, to eek out best performance, I refactored the home page route to allow route caching to be enabled. Also fixed issue preventing sessions from working correctly when running in production mode.
Improvements on performance and functionality of production builds.
Performance of Laravel from a mounted volume in Docker is truly awful. Like 900ms response time from super simple API calls. In a production build, where the code is just copied directly into the docker container, and config/route caching is enabled, the same service calls are under 100ms.
I updated the server dockerfile so it copies the code into the container instead of mounting it as a volume. Also, to eek out best performance, I refactored the home page route to allow route caching to be enabled. Also fixed issue preventing sessions from working correctly when running in production mode.