Current Behaviour
Currently, when working on musicblocks using the Docker approach, every code change requires a full image rebuild. This slows down the development cycle significantly.
Desired Behaviour
Introduce a docker-compose.yml to support a hot-reloading environment by mounting the local directory into the container as a volume, so file changes are reflected immediately without rebuilding the image.
Implementation
- Modifying the existing
Dockerfile by switching from a multi-step Docker build to a single-step build.
- Adding a new
docker-compose.yaml file.
Acceptance Tests
docker compose up ---build(for the first time build) and docker compose up must run the application perfectly as it runs currently, with added functionality of volume mounts for hot reloading.
Environment
- Operating System: Linux Ubuntu 24.04
- Browser: Chrome
- Version of Software/Project: v3.7.1
Checklist
Current Behaviour
Currently, when working on musicblocks using the Docker approach, every code change requires a full image rebuild. This slows down the development cycle significantly.
Desired Behaviour
Introduce a
docker-compose.ymlto support a hot-reloading environment by mounting the local directory into the container as a volume, so file changes are reflected immediately without rebuilding the image.Implementation
Dockerfileby switching from a multi-step Docker build to a single-step build.docker-compose.yamlfile.Acceptance Tests
docker compose up ---build(for the first time build) anddocker compose upmust run the application perfectly as it runs currently, with added functionality of volume mounts for hot reloading.Environment
Checklist