EYBlockchain / starlight

:zap: solidity --> zApp transpiler :zap:
Other
188 stars 38 forks source link

Optimise the startup scripts and dockerfiles for speed #294

Closed SwatiEY closed 2 months ago

SwatiEY commented 4 months ago

In the startup script we use sleep to make sure the current service starts before running the next service. But we should add a health check so that we correctly starts the next service.

We can optimise the dockerfiles for speed as, one my suggestion is moves the line "RUN npm ci" closer to the package.json copy, so we can cache it before edits in the code. Moreover make sure that we copy over required files only for each container.