Skip to content

chore: remove duplicate assets:precompile in Dockerfile - #610

Open
mahmoodhamdi wants to merge 1 commit into
TarteelAI:mainfrom
mahmoodhamdi:chore/dockerfile-remove-duplicate-precompile
Open

chore: remove duplicate assets:precompile in Dockerfile#610
mahmoodhamdi wants to merge 1 commit into
TarteelAI:mainfrom
mahmoodhamdi:chore/dockerfile-remove-duplicate-precompile

Conversation

@mahmoodhamdi

Copy link
Copy Markdown
Contributor

Dockerfile runs bin/rails assets:precompile twice in a row at lines 171-172. The second invocation is a no-op (the assets are already on disk after the first run) but it still loads Rails, scans the asset tree, and produces the cached compile log a second time — adding ~30s to every image build.

 # precompile assets
 RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
-RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile

No code changes, no behaviour change for the final image.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant