I'm running SPFx builds in a Docker container which works well. The approach is described here: https://github.com/waldekmastykarz/docker-spfx I'm using WSL2 and Ubuntu.
But unfortunately running
gulp build --ship takes extreemely long to start. After running the command in the Docker container there is a delay of more than 60 seconds here:
After this long pause the build starts. Where is this pause coming from?
Running the command locally makes a pause for about 10 seconds before it starts.
I tested with a newly created SPFx project and here are the results:
gulp bundle --ship run locally:
gulp bundle --ship in the Docker container:
The bundling takes 38s longer in the container which would be fine (I guess). But apart from bundling gulp spends 1 minute and 18 seconds doing something else. But what?? Any hints are appreciated.
Docker image waldekm/spfx:1.11.0