maybe
maybe copied to clipboard
Speedup docker build time
Previously individual layers within the Dockerfile installed the same some dependencies repeatedly, causing redundancy and build time increase.
This change: Moves commonly used dependencies to the base layer of the Dockerfile. Other layers now inherit these dependencies from the base layer, avoiding redundant installations. This approach leverages Docker's layering mechanism to ensure all layers have access to required dependencies while eliminating unnecessary repetition.
Since this is using the stock standard production Dockerfile that comes with Rails - would it be better to have this upstreamed into Rails (where more eyes could get a look at it). Thoughts @anonychun ?
I already created pull request to Rails, and already being merge https://github.com/rails/rails/pull/51063