# Improving development build times

**URL:** <https://forums.balena.io/t/improving-development-build-times/341199>\
**Category:** Product support\
**Created:** [July 24, 2021, 6:50pm UTC](https://forums.balena.io/t/improving-development-build-times/341199 "2021-07-24T18:50:14Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![maggie0002](https://avatars.discourse-cdn.com/v4/letter/m/e19b73/32.png) [@maggie0002](https://forums.balena.io/u/maggie0002)\
**Post date:** [August 24, 2021, 12:58am UTC](https://forums.balena.io/t/improving-development-build-times/341199/11 "2021-08-24T00:58:04Z")

</div>

Just had another look back at my dockerfile. I could copy the package.json file I first before the rest. I have it set up so that it would trigger a new install after every file change rather than just a change to package.json, not sure why I changed that. I think because it’s a multi build with no cache, does copying the package.json make a difference in that scenario?

It may help, although because of builds failing now when there is no cache such as on first build, I have to either modify my compose file so that one build happens at a time and the cache is stored or just resort to the cloud.

> [@ESOCKETTIMEDOUT on 'yarn install' during local push](https://forums.balena.io/t/esockettimedout-on-yarn-install-during-local-push/328990):
>
> When pushing my app to a Raspberry Pi 4 on my local network using balena push balena.local I kept getting the following error when it was building the wifi-connect UI ([wifi-connect/ui at master · balena-os/wifi-connect · GitHub](https://github.com/balena-os/wifi-connect/tree/master/ui)): error An unexpected error occurred: "https://registry.yarnpkg.com/rxjs/-/rxjs-6.6.6.tgz: ESOCKETTIMEDOUT". I have a 1 GBit internet connection so seemed unlikely to be a network timeout. Turns out, slow disk I/O causes the timeout ([Yarn fails with ESOCKETTIMEDOUT whil…](https://github.com/yarnpkg/yarn/issues/8242)

---

_[View the full topic](https://forums.balena.io/t/improving-development-build-times/341199)._
