Add Hot-Reloading for Dockerized Builds
NolanTrem opened this issue · 0 comments
Is your feature request related to a problem? Please describe.
During the process of developing and testing our Dockerized application, it can be quite tedious to rebuild the Docker image and restart the container every time we make a change to our codebase. This process is not only time-consuming, but it also interrupts our workflow, leading to reduced productivity and longer development times.
Describe the solution you'd like
Implementing a hot-reloading feature in our Dockerized workflow would allow us to see the changes made to the codebase in real-time, without having to manually rebuild the image and restart the container. This could be achieved by using volume mounting to share the code between the host and the Docker container. When a file is modified on the host, the changes would immediately be reflected in the Docker container.
Describe alternatives you've considered
We have considered using Docker's built-in caching mechanism to speed up image rebuilds. However, this still requires manually rebuilding the image and restarting the container. Another option we considered is using a file watcher that triggers a container restart when it detects changes. This method still results in a delay, as the container needs to restart each time a change is made.
Additional context
Hot reloading is a common feature in many development environments and it significantly improves the developer experience. It allows developers to stay in the 'flow' of coding, by providing immediate feedback and reducing the wait time associated with rebuilding and restarting. This would be a beneficial feature to add to our Dockerized development workflow.