Speedup docker build time #463

Merged
anonychun merged 1 commits from speedup-docker-build-time into main 2024-02-17 22:47:58 +08:00
anonychun commented 2024-02-15 13:45:37 +08:00 (Migrated from github.com)

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.

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.
robzolkos commented 2024-02-17 02:43:00 +08:00 (Migrated from github.com)

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 ?

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 ?
anonychun commented 2024-02-17 09:27:43 +08:00 (Migrated from github.com)

I already created pull request to Rails, and already being merge https://github.com/rails/rails/pull/51063

I already created pull request to Rails, and already being merge https://github.com/rails/rails/pull/51063
robzolkos (Migrated from github.com) approved these changes 2024-02-17 10:04:32 +08:00
Sign in to join this conversation.