Containers that serve static resources such as html, css or javascript shouldn't be built each time there's a change. It's too painful for the users.
With Docker for Desktop and docker-compose, I’d just bind mount the sources and that would be it. No rebuild involved and Live Reload could be setup to smooth the developer experience even more.
What we could do in Skaffold, un dev mode, is let the user bind mount the sources into the container running on the local Kubernetes. That’s not trivial because:
- The user would have to know what they are doing.
- Skaffold should at least make it possible to disable rebuild on some artifacts.
- The bind mounting should be configured in the skaffold.yaml and injected into the kubectl manifests (do we know how to do that?)
- Or we should support deploying a different list of manifests in dev mode and in run mode: one with the bind mounting (dev) and one without it (run).
Once we have that, we can also think about Live Reload.
Containers that serve static resources such as html, css or javascript shouldn't be built each time there's a change. It's too painful for the users.
With Docker for Desktop and docker-compose, I’d just bind mount the sources and that would be it. No rebuild involved and Live Reload could be setup to smooth the developer experience even more.
What we could do in Skaffold, un dev mode, is let the user bind mount the sources into the container running on the local Kubernetes. That’s not trivial because:
Once we have that, we can also think about Live Reload.