CRA inside docker container with typescript takes very long time

240 Views Asked by At

When no other builds are running it takes 40minutes on our server. The project is pretty large with many the output is 4K. My question is if this is normal/expected? Because I've seen posts of others complaining about like 10min run times.

EDIT:

Majority of the time is in: "Creating an optimized production build..."

If not anything I can do? Any gotchas I may missed? Thanks alot.

Server specs: CPU: Intel Xeon 1225v3 RAM: 4GB

1

There are 1 best solutions below

0
On

Try updating your version of react-scripts. I think they changed the version of Webpack that react-scripts uses when they moved to version 3 and it sped up builds.