How to update .app/.apk file to all appium server in selenium grid

I have many nodes of appium server in selenium grid. For now, I copy the .app/.apk file to each machine manually. It take time do that every new package.

Anyone have idea to do this task?

Upload the file to a server to any web server( If all the nodes are in same network use a local server )
Pass the “app” capability as below.

caps.setCapability("app","http url of the apk file");

It may take time in download depending on the file size and n/w speed.