I move most of my development processes to docker to provide a parallel development environment between computers, so there are no odd errors or problems due to incorrect version matching, etc.
All this goes fine, except that when starting the webpack-dev server inside the docker, the build process is much slower than when I run it only locally on my computer. (Like 3-5 minutes in docker versus 30 seconds to 1 minute in place). Is there any way to speed this up? Is this just a problem with docker / webpack interacting with a large number of files on my hard drive through an installed volume?
If that matters, my host system is a Mac running at high speed on an i7 with 16bg of memory.
I run docker for mac, docker -v returns: Docker version 17.12.0-ce, build c97c6d6
Hope all this is clear enough, let me know if I can add any information!
source
share